-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Webpack error with "node:" syntax #13819
Comments
Hello, @pablovargasosorio and thank you for opening this issue. We are looking into this on our side and will comment with any questions or updates as we have them. For now, please use v6.6.0. |
@pablovargasosorio, we aren't able to reproduce the issue on our side with minimal angular apps. Can you provide the build configuration in your app? Also, are you using a Node version that is v20+? Can you also try to update your webpack config to include the following (experimental fix) to see if this resolves the issue:
|
Hi @pablovargasosorio thanks for reporting this issue. Could you report which version of Webpack does your Angular project use? You can find the version by executing |
Hi @pablovargasosorio, @mixalbl4-127 while we are looking into this incompatibility issue between node core module and Webpack, we have reverted the change of adding Node.js 18 Webcrypto resolution. You can now upgrade to |
Thanks! @HuiSF I just tested with v6.6.2 and it works perfectly. |
@cwomack I think you can reproduce installing Cypress in your project, then import and use from a test any amplify function like Amplify.configure. When trying to run the cypress tests it will fail... |
Thanks for following up @pablovargasosorio. We are actually using Cypress in Amplify integration test suites against React and Angular, and we haven't seen such an issue occurred so far, will keep digging. Btw @pablovargasosorio @mixalbl4-127 do you all use the prebuilt Webpack configuration managed by React and Angular CLI, or do you have any custom configuration on top of that, if so could you share please? |
Closing this issue as it should be resolved with the reversion/change referenced above (PR #13820). |
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
After latest update to 6.6.1 the project does not compile:
It happend to me while running Cypress, but it will fail in any project which uses libraries with "node:..." syntax.
Summarizing, this minor release may be causing environments like mine to break all the testing environment.
Expected behavior
The project can be built by Webpack.
Reproduction steps
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: