Integrating AWS Amplify Auth with Snowpack via React #2015
Unanswered
pujitm
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
Having the same issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone had any luck getting the React AWS Amplify UI Library (specifically the Auth components) working with Snowpack?
I'm getting errors related to dynamic/lazy module loading (I think).
For the record, I read #718 and a few other rollup + amplify guides (like this one), but no prior solution seemed to work.
Quick reproduction is
npx create-snowpack-app aws-amplify-snowpack --template @snowpack/app-template-react-typescript --use-yarn yarn add aws-amplify @aws-amplify/ui-react yarn start --polyfill-node --verbose # after changing App.tsx as shown below
Expected error:
For the last part of the stack there, I checked the build output, and this part of the output led me to believe that it was rooted in a lazy loading error (the line where the error occurred seems to be checking whether the lazily loaded module is proxied):
Does this error pattern seem familiar to anyone?
Other attempted fixes
I tried the webpack plugin without any additional config, but I didn't observe anything different.
I also set the experimental source to skypack:
Error:
Trying to navigate there results in a malformed URL error, btw.
Verbose Output
Local Modules as source
Skypack as source
Beta Was this translation helpful? Give feedback.
All reactions