elderfo / react-native-storybook-loader

An automatic story loader for react-native-storybooks
https://github.com/elderfo/react-native-storybook-loader
MIT License
299 stars 27 forks source link

Execution issue in MAC due to non-unix line ending #101

Closed ashishpatel1992 closed 3 years ago

ashishpatel1992 commented 3 years ago

There is an error while executing rnstl due to non-UNIX line endings

yarn storybook-native
yarn run v1.22.10
$ rnstl
env: node\r: No such file or directory
error Command failed with exit code 127.

Fix:

dos2unix ./node_modules/react-native-storybook-loader/out/rnstl-cli.js
aymkin commented 3 years ago

Solution on WebStorm

image

image

run script again

christophemenager commented 3 years ago

I confirm I have the same issue ! I used the solution given by @ashishpatel1992 and it works 🔥 Thanks a lot

elenitaex5 commented 3 years ago

Thanks @ashishpatel1992 . I had same issue too and your fix works fine!!! 🥳 You rock! 🤘

elderfo commented 3 years ago

I published v2.0.4 using LF for newlines. I also changed the default to LF so when I build from my Windows machine instead of my mac this doesn't happen again.