ModuleParseError: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' #20293
Unanswered
pleodigital
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a private NPM package which is component library based on React, Material UI and Rollup and everything works like a charm. I wanted to add storybook to my project, but when I run start command I'm getting error like in title. I found some sollutions with simmilar tech stack but everywhere Typescript is used. My question is - is it possible to make storybook working in such environment or I need to add Typescript to my project? I've got bunch of components so to be honest I would greatly prefer to avoid neccessity to type everything. I attach babel and rollup config files and package.json. Thanks for help !
config.zip
Beta Was this translation helpful? Give feedback.
All reactions