Imports not picking absolute path other than immediate sub folder to baseUrl path (src) #9229
Unanswered
krajasekhar
asked this question in
Q&A
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.
-
To have imports from absolute path, I am configuring baseUrl and paths in
jsconfig.json
and facing below issues.My app folder structure:
When I configure
jsconfig.json
like this1.
it is failing at
import {someThing} from 'assets/someFile'
with errorModule not found: Can't resolve 'assets/someFile'
. No error forcomponents
/views
folders imports.2.
it is failing at
import {someThing} from 'views/someFile'
with errorModule not found: Can't resolve 'views/someFile'
. No error forassets
folders imports.but vs code is navigating to the source file when I do 'Ctrl + click' on the path with any of above config.
Beta Was this translation helpful? Give feedback.
All reactions