Skip to content
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

Snowpack build fails with aws-sdk 3.4.1 #7762

Closed
bhvngt opened this issue Feb 17, 2021 · 4 comments · Fixed by #7822
Closed

Snowpack build fails with aws-sdk 3.4.1 #7762

bhvngt opened this issue Feb 17, 2021 · 4 comments · Fixed by #7822
Labels
aws-sdk-js bug Something isn't working Build Related to build issues

Comments

@bhvngt
Copy link

bhvngt commented Feb 17, 2021

Describe the bug
A clear and concise description of what the bug is.
Issue aws/aws-sdk-js-v3#1992 was breaking my snowpack build. Patch aws/aws-sdk-js-v3#1991 has been released as part of 3.5.0. Kindly upgrade the dependency.

Following error is thrown while running snowpack build

[snowpack] ! building source files...
[snowpack] ✔ build complete [8.05s]
[snowpack] ! building dependencies...
[snowpack] Failed to load node_modules/.pnpm/@aws-sdk/[email protected]/node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js
  'parse' is not exported by node_modules/.pnpm/[email protected]/node_modules/bowser/src/bowser.js, imported by node_modules/.pnpm/@aws-sdk/[email protected]/node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js
[snowpack] Install failed.

To Reproduce
Steps to reproduce the behavior:

  1. create a snowpack project
  2. install aws-amplify/core

Expected behavior
A clear and concise description of what you expected to happen.
build should succeed

Code Snippet
Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. (Be sure to remove any sensitive data)
NA

Screenshots
If applicable, add screenshots to help explain your problem.
NA
What is Configured?
If applicable, please provide what is configured for Amplify CLI:
NA
Smartphone (please complete the following information):
CLI

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.

@bhvngt bhvngt added the to-be-reproduced Used in order for Amplify to reproduce said issue label Feb 17, 2021
@wlee221 wlee221 added the Build Related to build issues label Feb 17, 2021
@wlee221 wlee221 changed the title issue with aws-sdk 3.4.1 Snowpack build fails with aws-sdk 3.4.1 Feb 17, 2021
@wlee221 wlee221 removed the to-be-reproduced Used in order for Amplify to reproduce said issue label Feb 17, 2021
@wlee221
Copy link
Contributor

wlee221 commented Feb 17, 2021

Hello! I was able to reproduce this. We will look to upgrade our aws-sdk. Meanwhile, you can install previous Amplify version as a workaround:

npm i @aws-amplify/[email protected] --save --save-exact
# or 
npm i [email protected] --save --save-exact

@wlee221 wlee221 added aws-sdk-js bug Something isn't working labels Feb 17, 2021
@volkanunsal
Copy link

The workaround causes heap overflow in my machine.

I saw that this bug was fixed here. Is there any sense of when it will be released?

@wlee221
Copy link
Contributor

wlee221 commented Feb 25, 2021

@bhavinkamani-gt @volkanunsal This has been now released! Please install a fresh copy of aws-amplify and @aws-amplify/ui-<framework> if you use one.

@github-actions
Copy link

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 *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aws-sdk-js bug Something isn't working Build Related to build issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants