V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
mightofcode

分享 react 项目脚手架

  •  
  •   mightofcode · Jul 27, 2021 · 2828 views
    This topic created in 1740 days ago, the information mentioned may be changed or developed.

    https://github.com/mightofcode/nextjs-scaffold

    nextjs-scaffold

    a scaffold with nextjs, react, typescript, mongodb, koa

    Getting Started

    Prerequisites

    nodejs
    koa
    mongodb
    react

    Usage

    start server

    cd modules/server
    yarn start
    

    start nextjs

    cd modules/next
    npm run dev
    
    3 replies    2021-08-18 11:06:10 +08:00
    del1214
        1
    del1214  
       Jul 27, 2021
    awesome
    ben560000
        2
    ben560000  
       Jul 28, 2021
    Unhandled Runtime Error
    Error: No router instance found.
    You should only use "next/router" on the client side of your app.
    mightofcode
        3
    mightofcode  
    OP
       Aug 18, 2021
    @ben560000 能复现么,我试了下好像没问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1111 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:31 · PVG 01:31 · LAX 10:31 · JFK 13:31
    ♥ Do have faith in what you're doing.