Giter VIP home page Giter VIP logo

react-nextjs-riode's Introduction

riode-react-nextjs-vercel

image

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

react-nextjs-riode's People

Contributors

fantasyknight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-nextjs-riode's Issues

Getting error in dev server

$ npm run start

[email protected] 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: 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

[email protected] 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

try to run with npm and getting error

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.