Storybook does not resolve paths from TS config #528
Labels
ready
Ready for implementation
restricted: maintainers
Only maintainers can resolve this issue
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Description
The TypeScript config file
tsconfig.json
definespaths
as follows:which allows us to import using a much cleaner syntax:
These paths are not resolved by Storybook and thus stories written for components that use such imports do not compile.
Expected behavior
Storybook should use the same TS config and resolve paths.
To Reproduce
.svelte
extension tosrc/components/modal/__meta__/Modal.stories
.Additional context
Aliases set at the bundler level can be configured for Storybook using the
webpackFinal
field orviteFinal
field inmain.js
but since these paths are set at the TypeScript level instead, I'm not sure what needs to be done.The text was updated successfully, but these errors were encountered: