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

try to run with npm and getting error #1

Open
rabinovich101 opened this issue Apr 19, 2023 · 6 comments
Open

try to run with npm and getting error #1

rabinovich101 opened this issue Apr 19, 2023 · 6 comments

Comments

@rabinovich101
Copy link

I am running first "npm install" then "npm dev" or "npm start" ,the result is :

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from Z:\All Projects\react-nextjs-riode.env.production
info - Using webpack 5. Reason: no custom webpack configuration in next.config.js https://nextjs.org/docs/messages/webpack5
Error: Specified basePath /. basePath has to be either an empty string or a path prefix"
at assignDefaults (Z:\All Projects\react-nextjs-riode\node_modules\next\dist\next-server\server\config.js:5:1391)
at loadConfig (Z:\All Projects\react-nextjs-riode\node_modules\next\dist\next-server\server\config.js:8:878)
at async NextServer.loadConfig (Z:\All Projects\react-nextjs-riode\node_modules\next\dist\server\next.js:1:3155)
at async NextServer.prepare (Z:\All Projects\react-nextjs-riode\node_modules\next\dist\server\next.js:1:2679)
at async Z:\All Projects\react-nextjs-riode\node_modules\next\dist\cli\next-start.js:19:331

any solution ?

@fantasyknight
Copy link
Owner

Hello,

Could you please gimme your contact info?

@rabinovich101
Copy link
Author

Hello,

Could you please gimme your contact info?

@okey4551 is my telegram

@Manel-Rejeb
Copy link

any solution, i am having the same error !

@Remidemic
Copy link

same issue here. npm install then npm run start/run dev. same error message . excited to try your code!

@Greemjo
Copy link

Greemjo commented Dec 1, 2023

same error

@otchappi
Copy link

I fixed it by putting just "" and in next.config.js basePath: '',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants