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

when trying to build next.js / run dev mode #3288

Open
NazarBeya opened this issue Dec 9, 2024 · 2 comments
Open

when trying to build next.js / run dev mode #3288

NazarBeya opened this issue Dec 9, 2024 · 2 comments

Comments

@NazarBeya
Copy link

In browser///////

Build Error
Failed to compile

Next.js (14.2.20) is outdated (learn more)
../../../node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js:5:1
Module not found: Can't resolve '@emotion/react'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../../../node_modules/@mui/styled-engine/GlobalStyles/index.js
../../../node_modules/@mui/styled-engine/index.js
../../../node_modules/@mui/system/esm/index.js
../../../node_modules/@mui/x-data-grid/components/GridRowCount.js
../../../node_modules/@mui/x-data-grid/components/index.js
../../../node_modules/@mui/x-data-grid/index.js
./src/app/(client)/my-prospect/(root)/page.js
This error occurred during the build process and can only be dismissed by fixing the error.

In console////////
https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../../../node_modules/@mui/styled-engine/GlobalStyles/index.js
../../../node_modules/@mui/styled-engine/index.js
../../../node_modules/@mui/system/esm/index.js
../../../node_modules/@mui/x-data-grid/components/GridRowCount.js
../../../node_modules/@mui/x-data-grid/components/index.js
../../../node_modules/@mui/x-data-grid/index.js
./src/app/(client)/my-prospect/(root)/page.js
⨯ ../../../node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js:5:1
Module not found: Can't resolve '@emotion/react'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../../../node_modules/@mui/styled-engine/GlobalStyles/index.js
../../../node_modules/@mui/styled-engine/index.js
../../../node_modules/@mui/system/esm/index.js
../../../node_modules/@mui/x-data-grid/components/GridRowCount.js
../../../node_modules/@mui/x-data-grid/components/index.js
../../../node_modules/@mui/x-data-grid/index.js
./src/app/(client)/my-prospect/(root)/page.js
GET /my-prospect 500 in 9926ms

@Andarist
Copy link
Member

Andarist commented Dec 9, 2024

Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given.

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

2 participants