Absolute import paths via jsconfig.json compilerOptions.basePath not working in exposed modules? #2655
Unanswered
nickrobillard
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.
-
I am using
jsconfig.json
in order to use absolute import paths. Injsconfig.json
, I have set compilerOptions baseUrl like this:Then in a component, I am able to use absolute import paths, like this:
Relative to my package.json,
SomeService.js
path is./app/components/SomeService.js
. This works well outside of WMF. However, when using WMF and I expose this component, I see this error immediately:Question
Is there a way for WMF to support my absolute import paths, or do I need to change them to be relative? Any insight is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions