-
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
Getting the error of Window is not defined, after new installation of the node_modules with "youtube-iframe" package #3486
Comments
I also came across that issue after upgrading A workaround I'm using to get around it (I'm using amplify from Node backend) is to add the following polyfill before importing
|
@svenkatesh-nyros We did have an issue with the |
This resolved the issue, but now I am getting:
/Users/georgebell/Desktop/Code/tmh-web/web/node_modules/@aws-amplify/ui/dist/aws-amplify-ui.js:1 |
@sammartinez . ReferenceError: window is not defined Please check the following screenshot. |
I thought I'm getting something wrong. But seems like this is one of the latest issues. Please get this fixed asap. I am using aws-amplify in lambda and the following error is coming :- |
Facing the same issue just getting started out with Amplify, does anyone happen to know workable versions to roll back to in the meantime to unblock? |
Hey, meanwhile the error might be getting fixed, you can use individual amplify components in your app and use them like :- const Amplify = require('@aws-amplify/core').default; |
Also having the same issue on a node app we are running on server only. Using the current unstable branch
|
same here |
Same. window is not defined node_modules/@aws-amplify/ui/dist/aws-amplify-ui.js:1:289. how i fix this rly quick ? |
@anarerdene I only add modules which i will use.
|
Here is an alternative quick fix, I only had to add 'resolutions' to my package.json. This is the source: #3477 "resolutions": {
"@aws-amplify/ui": "1.0.19"
}, |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
After installation of the @aws-amplify with the additional package of youtube-iframe. Getting the error of window is not defined.
Screenshots
Please check the following screenshot of the error. The app is working with previous node_modules without youtube-iframe package inside.
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.
The text was updated successfully, but these errors were encountered: