You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it looks like the module is resolved from the filesystem root when a relative import of a .js file is encountered. index.mjs contains file paths with too many ../. I expect them to be resolved correctly, like .ts files.
either removing srcDir or changing one.js to one.ts fixes the issue in the minimal example. only dev mode is affected, using build && preview, it runs fine.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-zqsihv?file=subsystem%2Froutes%2Fone.js
subsystem/index.ts
import a.js
relativelydev
Describe the bug
it looks like the module is resolved from the filesystem root when a relative import of a
.js
file is encountered.index.mjs
contains file paths with too many../
. I expect them to be resolved correctly, like.ts
files.nuxt/nuxt#26150
Additional context
either removing
srcDir
or changingone.js
toone.ts
fixes the issue in the minimal example. only dev mode is affected, usingbuild && preview
, it runs fine.Logs
No response
The text was updated successfully, but these errors were encountered: