-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token: operator (?) in file node_modules/@storybook/preview-api/dist/preview-web.js. error #592
Comments
please can you share the version of react-native and storybook etc |
I've shared it in the description, storybook version (7.6.20) and RN version (0.70.5) here are the versions i've used |
Can you try updating react native or is that not an option? But also can you verify that all storybook packages are on the same version? |
Unfortunately no, we have an update scheduled by the end of year, we can do it only then |
what about the versions of the different storybook packages are they all aligned? |
Sorry to bother you, any updates here ? |
do you have a reproduction I can look at? |
unfortunately, it's a private repo.. but you can try it out with https://github.com/esbenvb/storybook-rn-minify-issue this link, they were facing the same issue and the dependency versions are pretty much similar... |
A reproduction is a minimal recreation of the problem in a public repo it doesn't require private code to be included. |
I don't have a lot of time to look at it right now because of work and other commitments but i will try to check this weekend |
Sure @dannyhw , any luck with this ?? |
so far I have just confirmed that by passing |
@SaiChand-Headout Ok I found the issue, there is a heres the changes needed: https://github.com/esbenvb/storybook-rn-minify-issue/pull/1/files |
I had the same issue with react native 0.69.9, spent days trying to get storybook working on android. @dannyhw's solution works perfectly. Thanks guys! |
thanks a lot @dannyhw , this worked |
error: Error: Unable to resolve module url from /Users/xxxxxx/node_modules/axios/dist/node/axios.cjs: url could not be found within the project or in these directories: -> 8.3.5 , |
@hanwenbo if you have a specific error please create a new issue describing the problem |
Describe the bug
error node_modules/@storybook/preview-api/dist/preview-web.js: Unexpected token: operator (?) in file node_modules/@storybook/preview-api/dist/preview-web.js at 3139:39. Getting this error when trying to build for iOS
To Reproduce
Steps to reproduce the behavior:
Run yarn
./node_modules/.bin/react-native bundle
--dev false
--platform ios
--reset-cache
--entry-file index.js
--bundle-output ./TEST_BUNDLE
--sourcemap-output ./TEST_BUNDLE.map in root folder with storybook version (7.6.20) and RN version (0.70.5)
Screenshots
The text was updated successfully, but these errors were encountered: