V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
whatsupbitch
V2EX  ›  Next.js

Next.js 开发时,编译好慢。

  •  
  •   whatsupbitch · 4 天前 · 602 次点击
    ○ Compiling /rms/login ...
    ✓ Compiled /rms/login in 27.8s (4942 modules)
    GET /rms/login/ 200 in 29238ms
    ✓ Compiled in 2.2s (2447 modules)
    ○ Compiling /favicon.ico ...
    ✓ Compiled /favicon.ico in 8.8s (2525 modules)
    GET /favicon.ico 200 in 9242ms

    开发模式每次启动,进入每个页面都贼慢,大家如何忍受的。
    7 条回复    2024-06-27 14:31:37 +08:00
    Mandmg
        1
    Mandmg  
       4 天前
    我也是 ,同问
    changeOU
        2
    changeOU  
       4 天前
    确实, 原来我不是个例. 一直怀疑是不是电脑配置拖后腿了
    november
        3
    november  
       4 天前
    无解。开发时,它只是启动了而已,并没有编译,等你访问时再编译你访问的页面。用起来就会慢。
    官方并不打算改变这一“特性”。之前看过相关 issue 。
    caocong
        4
    caocong  
       4 天前
    打包更慢,而且还有开着开发模式打包卡住的情况
    coolcoffee
        5
    coolcoffee  
       4 天前
    nuxtjs 也是启动慢的怀疑人生,感觉 esno/swc 替代 webpack 挤出的大管牙膏又被他们用别的地方给吸回去了。
    Ritr
        6
    Ritr  
       4 天前
    当你打开对应页面时,才会编译成静态页面,下次打开这个页面就快了
    Pters
        7
    Pters  
       4 天前
    我直接 CPU 100%风扇狂转,一下一下的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1317 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:40 · PVG 01:40 · LAX 10:40 · JFK 13:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.