Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running npm start after create-react-app #16899

Open
tskxz opened this issue Jan 19, 2025 · 0 comments
Open

Error when running npm start after create-react-app #16899

tskxz opened this issue Jan 19, 2025 · 0 comments

Comments

@tskxz
Copy link

tskxz commented Jan 19, 2025

I am encountering an issue when trying to start a new React app using create-react-app. After running the commands below, I get the following error when executing npm start.

npx create-react-app client
cd client
npm start

The npm start command fails with the following error message:

> [email protected] start
> react-scripts start

Cannot find module 'ajv/dist/compile/codegen'
Require stack:
- /home/tanjil/stockmaster/client/node_modules/ajv-keywords/dist/definitions/typeof.js
- /home/tanjil/stockmaster/client/node_modules/ajv-keywords/dist/keywords/typeof.js
- /home/tanjil/stockmaster/client/node_modules/ajv-keywords/dist/keywords/index.js
- /home/tanjil/stockmaster/client/node_modules/ajv-keywords/dist/index.js
- /home/tanjil/stockmaster/client/node_modules/schema-utils/dist/validate.js
- /home/tanjil/stockmaster/client/node_modules/schema-utils/dist/index.js
- /home/tanjil/stockmaster/client/node_modules/webpack-dev-server/lib/Server.js
- /home/tanjil/stockmaster/client/node_modules/react-scripts/scripts/start.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant