Inconsistency between jsconfig.json
and next.config.js
#13350
Unanswered
anmonteiro
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project where I run Next.js in a subdirectory. My
dev
script is e.g.next dev ./subdir
.I was trying to set up the new absolute import scheme detailed in the 9.4 release, and found out that, while
next.config.js
needs to sit at the root of the repository,jsconfig.json
only works if specificed in the subdirectory.So this works:
But this doesn't:
That took me a while to figure out. Is this by design? Note that I'm very much out of my depth, I don't really know how
jsconfig.json
is used outside of the scope of Next.js.Beta Was this translation helpful? Give feedback.
All reactions