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
I just followed the tutorial, and it failed on Unit 4/5: Create an Azure Static Web App. The failure is visible on the automatically generated workflow run here.
It can also be reproduced locally:
Clone this repo
cd react-app
npm install
npm run build
Observe error:
> [email protected] build
> react-scripts build
Creating an optimized production build...
Failed to compile.
[eslint] Failed to load parser 'react-scripts/node_modules/babel-eslint' declared in '.eslintrc.json': Cannot find module 'react-scripts/node_modules/babel-eslint'
Require stack:
- /Users/victor/repos/victorlin/my-static-web-app/react-app/.eslintrc.json
The text was updated successfully, but these errors were encountered:
2 more issues with react tutorial as of now-
Module not found: Error: Can't resolve 'react-router' in 'C:\Snehal\static-webapp-and-api\static-web-app\react-app\src'
ERROR in ./src/App.js 12:0-42
Module not found: Error: Can't resolve 'react-router' in 'C:\Snehal\static-webapp-and-api\static-web-app\react-app\src'
ERROR in ./src/products/ProductList.js 5:0-42
Module not found: Error: Can't resolve 'react-router' in 'C:\Snehal\static-webapp-and-api\static-web-app\react-app\src\products'
Can be fixed by importing 'withRouter' from 'react-router-dom' instead of 'react-router'
I just followed the tutorial, and it failed on Unit 4/5: Create an Azure Static Web App. The failure is visible on the automatically generated workflow run here.
It can also be reproduced locally:
cd react-app
npm install
npm run build
The text was updated successfully, but these errors were encountered: