DEV Community

Discussion on: Step 3: Setting up Storybook with React Native Web: show your mobile components the browser!

Collapse
 
stevetro profile image
SteveTr

Thanks for your tutorial, Part 1 and 2 was really helpful.
But when i try to run "yarn storybook-web" i get a windows script error at

"node_modules\@storybook\react\bin\index.js"

Line: 1
Char: 1
Error: Invalid character
Code: 800A03F6
Source: Microsoft JScript compilation error

couldn't find a solution for that, do you have a idea?

Collapse
 
shootermv profile image
Moshe • Edited

i solved it by installing 'cross-env' (npm i cross-env)and modifing script to be "cross-env ./node_modules/@storybook/react/bin/index.js"