-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Remix v1.16.0 - Unable to build app with crypto dependency #6284
Comments
Happens for all imports from |
Updated the title to make that clear. I think the compiler config likely changed between v1.15.0 and v1.16.0. |
This also causes issues with importing the TypeScript "ts" package from frontend code - the injected polyfills make the browser environment look enough like Node that TypeScript tries to run in Node with FS access. It'd be great to avoid Node polyfills altogether in the web builds. |
We just published version |
I think
|
@MichaelDeBoey Can confirm that the error still throws. I'm using Remix |
|
Changing to a namespace import fixed the issue Package: |
I've confirmed that As @luisgrisolia mentioned, you may have to use |
What version of Remix are you using?
v1.16.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
import { createHash } from "crypto"
.Expected Behavior
Should build successful - behavior in
1.15.0
Actual Behavior
Fails to build
The text was updated successfully, but these errors were encountered: