You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aws-sdk-js-v3 throws the following error when build is performed using snowpack
[snowpack] Failed to load node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js 'parse' is not exported by node_modules/bowser/src/bowser.js, imported by node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js[snowpack] Install failed.
[snowpack] Hint: run "snowpack init" to create a project config file. Using defaults...[snowpack] ! building source files...[snowpack] ✔ build complete [0.13s][snowpack] ! building dependencies...[snowpack] Failed to load node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js 'parse' is not exported by node_modules/bowser/src/bowser.js, imported by node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js[snowpack] Install failed.
This is an issue with manually written types in bowser which falsely state that named imports are available for the module. Details in bowser-js/bowser#458
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
aws-sdk-js-v3 throws the following error when build is performed using snowpack
Your environment
SDK version number
@aws-sdk/[email protected]
[email protected]
Is the issue in the browser/Node.js/ReactNative?
Node.js & Browser
Details of the browser/Node.js/ReactNative version
Tested with Node.js
v14.15.4
Steps to reproduce
Quick test for bundling:
package.json
index.js
The command run to test snowpack bundling:
./node_modules/.bin/snowpack build
Observed behavior
The following error is thrown:
Expected behavior
Snowpack build is successful.
Additional context
Discussion on snowpack repo: FredKSchott/snowpack#2114
Issue noticed in todo app: aws-samples/aws-sdk-js-notes-app#2 (comment)
The text was updated successfully, but these errors were encountered: