Comments (14)
hi @danielroe, I managed to fix it by adding:
typescript: { includeWorkspace: true, },
to the nuxt.config.ts inside .playground. Thanks!
from starter.
Would you provide a reproduction? 🙏
from starter.
@danielroe i think this must be documented or set by default, what do you think?
from starter.
I believe this is set by default in the layer starter, but if it isn't working we should raise a new issue (with reproduction) first - and then update.
from starter.
No, i'm using module starter and it's not.
from starter.
Oh. This issue was about the layers starter. The Nuxt module starter uses new stub mode by default. Are you using that?
from starter.
Guess no :) how can i use it?
from starter.
Check the module branch on this repo.
from starter.
if you mean this: https://github.com/nuxt/starter/tree/module
i've cloned this repo and it has issues without typescript: { includeWorkspace: true, }
in nuxt.config.ts
from starter.
Do you have a reproduction? Feel free to create an issue to track it!
from starter.
pnpm i
pnpm dev
- take a look at "src/runtime/components/test.vue
![image](https://private-user-images.githubusercontent.com/5739191/313445097-9708d8dc-80b6-493a-bb23-8e231d1eb86f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyODI5NTMsIm5iZiI6MTcyMjI4MjY1MywicGF0aCI6Ii81NzM5MTkxLzMxMzQ0NTA5Ny05NzA4ZDhkYy04MGI2LTQ5M2EtYmIyMy04ZTIzMWQxZWI4NmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjlUMTk1MDUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjM2ZWJmN2RlNGQ2MzY0ZWZiNDE4MzlhNDBiMDdlOTJjMTc3ZjVmMGMxYjczOGRmMDk5OTIzYWVhY2NjODA4ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.2Yd6_fQ_uwfkS_B8oJQuGqfuw4aGvofzV8DCPc0qbos)
It doesn't have .nuxtrc
by default (i mean module starter, but layer does)
I also created PR: #685
from starter.
@avxkim that is actually correct. It is flagging up an issue you will have when you publish the module to npm, where auto imports are not supported.
from starter.
@danielroe but even if i use imports, like this:
import { ref } from '#imports'
it still flags it as error. Are you sure we don't need .nuxtrc
?
from starter.
Can you provide a reproduction? 🙏
from starter.
Related Issues (20)
- Vue & Nuxt primitives are not available HOT 2
- Types are lost when assigned to runtimeConfig HOT 3
- Feature: remote repositories HOT 2
- shamefully-hoist in .npmrc HOT 1
- New layer fails typecheck HOT 2
- CodeSandbox via `nuxt.new` is broken HOT 3
- Nuxt module starter is broken HOT 2
- Nuxt module : IDE doesn't recognize vue functions. HOT 5
- Nuxt 马上就要更新到 4 的版本了 HOT 1
- Nuxt UI starter outdated deps HOT 1
- 我拉取了模版,尝试运行了一下,然后去页面中刷新了一下,报错了以下问题: HOT 2
- 未知的问题,没有端口,页面却诡异的显示出Nuxt 3 Vitesse What's your name? GO [Default Layout] HOT 4
- tsconfig.json path HOT 4
- Add NuxtRouteAnnouncer in a default templates (v3 - *) after Nuxt 3.12.0 release
- Add postinstall script HOT 2
- Why are dependencies not under `devDependencies`? HOT 2
- how to remove or edit this start page?
- `nuxt` moved back under devDependencies HOT 1
- Broken in CodeSandbox
- nuxt.new layers starter is completely wrong HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter.