StorybookJS not importing RequireJS components properly #14215
Unanswered
salehkaddoura-alation
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello storybook team, this is not necessarily a bug but an issue I ran into and would like some guidance.
I am creating my first story and attempting to import one of my components and I am running into this error.
ERROR in ./js/require/****/views/uikit/UIButton.jsx Module not found: Error: Can't resolve 'alation/views/uikit/UITooltip' in '/Users/saleh.kaddoura/dev/alation/django/static/js/require/****/views/uikit'
All of my components are in this path
js/require/****/views/uikit/***.jsx
the imports for
uikit/UIButton.jsx
look like this:storybook stories is located here
js/stories/UIButton/UIButton.jsx
this file is as follows:How do I get storybook to look for components in the correct path?
Should I move the stories directory somewhere else?
Can I add some configuration to storybook to tell where to look for nested imports?
Beta Was this translation helpful? Give feedback.
All reactions