Closed orlaqp closed 1 year ago
Hi @orlaqp can you try the config in your webpack listed in this comment and see if it solves your issue? I wasn't set up as a monorepo when doing this testing but it seemed like the webpack config did not work by default anymore after a certain version of Nx
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth, hosting
Environment information
Describe the bug
I have set up a workspace using Nx where I have two micro-frontend applications both using React and Amplify. I am already using the hosting module from Amplify in both projects with no issues but as soon as I added the auth package and try just the following:
I get a lot of errors from compiling the code (check the logs section below)
Expected behavior
The application should compile correctly and i should not throw these exceptions when compiling the code
Reproduction steps
npx create-nx-workspace --packageManager=yarn
amplify init
amplify add hosting
amplify add auth
environments/environment.ts
filenx serve <name of your app>
Code Snippet
Sample repo: https://github.com/orlaqp/amplify-test
Log output
aws-exports.js
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