nuxt-ts ignores srcDir
See original GitHub issueVersion
Reproduction link
https://codesandbox.io/s/5pp2yx8wx
Steps to reproduce
- Create a nuxt app using
$ npx create-nuxt-app <project-name>
- Create
src
directory usingmkdir src
. - Add
srcDir: "src/"
tonuxt.config.ts
- Move related dirs (pages, components etc.) into
src
dir.
What is expected ?
Application to start and run without errors.
What is actually happening?
Application does not run and got warning:
WARN No pages
directory found in /sandbox. Using the default built-in page.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
nuxt-ts ignores srcDir · Issue #46 · nuxt/typescript - GitHub
config.ts but a nuxt.config.js is present (or so).
Read more >The ignore Property - Nuxt
The ignore property. Define the ignore files for your Nuxt application .nuxtignore. You can use a .nuxtignore file to let Nuxt ignore layout...
Read more >WebStorm ignores srcDir setting in nuxt.config.js ... - YouTrack
Place nuxt.config.js in the root directory and specify srcDir: 'client' in it. Use a Vuex module, getter, mutation etc. inside a Vue component....
Read more >NUXT project cannot build - Stack Overflow
Use ignore to just not import the index one. At the end, giving a read to this tutorial may be useful to see...
Read more >The generate Property - NuxtJS
When adding a regular expression which matches all routes with "ignore", it will prevent the generation of these routes. nuxt.config.js export default { ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kevinmarrec In this case, we should provide some kind of hint/warning/notice when no nuxt.config.ts was found but a nuxt.config.js ☺️
I missed the
nuxt.config.ts
also, thx ~