-
Notifications
You must be signed in to change notification settings - Fork 92
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
Cannot read property 'slice' of undefined #242
Comments
Same here, Android is crashing on starup. This actually comes from images showing the error reported by Metro and the file path to the actual library EDIT Same issue on iOS. **EDIT 2 : ** I think this might be the MR on |
I opened an issue in browserify-sign In the meantime can we try to downgrade this dependency? |
A quick fix although a dirty one:
|
simpler solution in package.json: "resolutions": {
"browserify-sign": "4.2.2"
}, |
@beqramo can you share exact steps? I have added the above snippet in package.json but still getting the same issue. |
@nikhil-kataria remove node modules and yarn.lock and run yarn again |
To resolve resolver: {
extraNodeModules: {
stream: require.resolve('readable-stream'),
},
} |
Does anyone have a solution? |
@beqramo what do you mean by remove node js? If i'm using npm can I just delete package-lock.json ? |
@grenos followed your steps but instead of yarn I used npm, still doesn't work, any insights you found when solving this ? |
@grenos thank you so much, |
@mrousavy @Szymon20000 This one is important, I just tried updating an app to the new arch and this started failing. |
I haven't encountered this yet, but if you have a fix for that that works in your app already could you submit a PR? we can get this merged and pushed asap. @ospfranco |
The author of the commit refused to revert his change. It was done to keep compatibility with Node 4. I do not have a PR, I solved by adding the resolution field into my package.json to force a different version of the subdependency: "resolutions": {
"browserify-sign": "4.2.2"
}, This package might also be worth a shot: https://www.npmjs.com/package/process This one could be included as a dependency of quick-crypto and imported directly on the index.ts so that users don't have to manually install it. I don't have that much time to test and send a PR though. So leaving it for someone here to open a PR. |
Ran into the same issue as @adrianofoschi looked for hours thinking it was my |
This was resolved by #264 |
I would encourage folks to take a hard look at how much exposure they have to the projects ljharb has wormed his way into maintaining given how many times I have seen him pull these shenanigans on users. In this case thousands of people's projects were broken because he demanded we support Node v1 and pre-release Node RC versions. Alternatives: |
I had to add below code into my package json to resolve above issue. So if anyone face this issue can opt for my solution. "resolutions": { |
That’s not a fair characterization. The source of the breakage is that metro doesn’t provide I’m looking into an alternative solution which wouldn’t require any of these workarounds, but in the meantime, i suggest you lobby metro to properly bundle node modules. |
@shamilovtim can we close this issue? |
Yeah good to close |
at least push a release lol, having to pin a commit on the main branch is a bit suboptimal |
It's fixed in the latest release candidate on npm (I think it's 0.7.0-rc2) |
Installed on new app created with Expo 50.
I am having this errors. Slice seems related to stream. Maybe I am missing something?
I tried with 'stream': 'stream-browserify' inside babel config and also patching cipher-base and hash-base replacing stream with readable stream. The error is always the same.
The text was updated successfully, but these errors were encountered: