question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nuxt-ts ignores srcDir

See original GitHub issue

Version

v2.4.3

Reproduction link

https://codesandbox.io/s/5pp2yx8wx

Steps to reproduce

  1. Create a nuxt app using $ npx create-nuxt-app <project-name>
  2. Create src directory using mkdir src.
  3. Add srcDir: "src/" to nuxt.config.ts
  4. 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.

<div align="right">This bug report is available on Nuxt community (#c8630)</div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
manniLcommented, Feb 9, 2019

@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 ☺️

0reactions
shalldiecommented, Feb 13, 2019

I missed the nuxt.config.ts also, thx ~

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found