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
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from D:\riode-nextjs\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 (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\config.js:5:1391)
at loadConfig (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\config.js:8:878)
at async NextServer.loadConfig (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:3155)
at async NextServer.prepare (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:2679)
at async D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\cli\next-start.js:19:331
Got above error and After that i changed my next.config.js file basePath to this, basePath: "", but still not working, below is the error after modification in next config file.
npm run start
riode-react@2.0.0 start
next start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from D:\riode-nextjs\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: Could not find a production build in the 'D:\riode-nextjs\react-nextjs-riode\build' directory. Try building your
app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at Server.readBuildId (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\next-server.js:151:355)
at new Server (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\next-server.js:3:120)
at NextServer.createServer (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:2935)
at async D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:3360
The text was updated successfully, but these errors were encountered:
$ npm run start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from D:\riode-nextjs\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 (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\config.js:5:1391)
at loadConfig (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\config.js:8:878)
at async NextServer.loadConfig (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:3155)
at async NextServer.prepare (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:2679)
at async D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\cli\next-start.js:19:331
Got above error and After that i changed my next.config.js file basePath to this, basePath: "", but still not working, below is the error after modification in next config file.
npm run start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from D:\riode-nextjs\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: Could not find a production build in the 'D:\riode-nextjs\react-nextjs-riode\build' directory. Try building your
app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at Server.readBuildId (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\next-server.js:151:355)
at new Server (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\next-server\server\next-server.js:3:120)
at NextServer.createServer (D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:2935)
at async D:\riode-nextjs\react-nextjs-riode\node_modules\next\dist\server\next.js:1:3360
The text was updated successfully, but these errors were encountered: