Resolving Alias Imports in an Electron Project with Storybook: Seeking Solutions #498
Unanswered
tahirdibirovsoftware
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
-
I'm facing a problem with resolving alias imports in my Electron project. The aliases work fine within the project itself, but Storybook can't resolve them. When I import a component in a story file, it throws an error, but as a relative import, it works fine. Even if the component is imported as a relative path in the story file but the component itself uses an alias import, it again throws the same error. How should I deal with this?
The stack used in the project includes: Electron (using the electron-vite boilerplate), TypeScript, SASS, React, and Storybook.
Here are the relevant parts of my configuration:
tsconfig.json:
tsconfig.node.json:
tsconfig.web.json:
electron.vite.config.ts:
.storybook/main.ts:
Beta Was this translation helpful? Give feedback.
All reactions