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
So if I want to add path alias in the tsconfig.json for example (within the UI library):
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
how to merge that in webpack.config.js? It will lead to Module not found: Error: Can't resolve '@/...' error when run nx run ui:storybook without extra config.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I created a UI library.
Here are some auto generated files:
tsconfig.base.json
at workspace's root:webpack.config.js
inside the UI library's.storybook
folder:and a
tsconfig.json
within UI library' root directory:So if I want to add path alias in the
tsconfig.json
for example (within the UI library):how to merge that in
webpack.config.js
? It will lead toModule not found: Error: Can't resolve '@/...'
error when runnx run ui:storybook
without extra config.Beta Was this translation helpful? Give feedback.
All reactions