-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Uncaught TypeError: t._reverse is not a function #16697
Comments
I've also added a minimal working rollup config on the prod-rollup branch |
I followed the reproduction steps but I wasn't able to reproduce either on stackblitz or on Windows. It output |
I can confirm that I'm unable to reproduce this on stackblitz. Were you using "localhost" on your Windows machine? The only thing I can think of is that the secure context you're running under is bypassing crypto-browserify. Would you mind trying to browse to your Windows non-127.0.0.1 address? In the mean time, I'm checking to see if updating the asn1.js transitive dependency will address this specific issue. Apparently it was updated to fix a circular dependency problem but then rolled back because it broke node v4 support in crypto-browserify. |
Yeah, I was using |
i tried running it on my end, it works fine, here's my system spec:
|
I've changed so much in the application over the past 3 days that I couldn't even begin to work out what fixed the issue, but it's no longer happening on my non-minimal reproduction. Closing... |
Describe the bug
Anytime I attempt to run a vite+react application in production mode with crypto polyfilled, the application fails to render and displays the following error in the browser js console:
Running the application in dev mode works just fine.
This was originally reported in #16385. However, that issue was closed and locked since it was specific to vite 2.x. This report is for the same issue in vite@5.2.11
I believe the _reverse call in question is located here
Reproduction
https://github.com/pward123/vite-issue-16385
Steps to reproduce
Follow the instructions in the readme for the reproduction repo
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: