V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
mightofcode
V2EX  ›  分享创造

分享 react 项目脚手架

  •  
  •   mightofcode · 2021-07-27 11:33:26 +08:00 · 1847 次点击
    这是一个创建于 975 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2021-08-18 11:06:10 +08:00
    del1214
        1
    del1214  
       2021-07-27 11:46:47 +08:00
    awesome
    ben560000
        2
    ben560000  
       2021-07-28 12:23:37 +08:00
    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
       2021-08-18 11:06:10 +08:00
    @ben560000 能复现么,我试了下好像没问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   958 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:42 · PVG 04:42 · LAX 13:42 · JFK 16:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.