Closed trivikr closed 3 years ago
PR which bumped webpack from 4 to 5 in workshop repo https://github.com/aws-samples/aws-sdk-js-v3-workshop/pull/217
A temporary fix is just to delete webpack before running frontend as follows:
$ rm -rf node_modules/webpack
We'll update react-scripts once webpack 5 support is added in https://github.com/facebook/create-react-app/issues/9994
Closing as the notes-app was moved to vite in https://github.com/aws-samples/aws-sdk-js-notes-app/pull/37
Vite uses esbuild.
Describe the bug
yarn build:frontend
fails with the following error:Steps to reproduce
Follow README
Observed behavior
yarn build:frontend
oryarn serve:frontend
failsExpected behavior
yarn build:frontend
oryarn serve:frontend
suceedsAdditional context
CRA doesn't support webpack 5 as per https://github.com/facebook/create-react-app/issues/9994