Giter Club home page Giter Club logo

Comments (6)

rcocco avatar rcocco commented on June 20, 2024

如果用npm run serve的话,经常会出现第一次成功,之后再改动代码,编译的进度条走到一半就退出了,几乎没有办法边改边看

from mpx.

mater1996 avatar mater1996 commented on June 20, 2024

可以添加--no-clear 来解决该问题,目前 run serve 会把之前的文件移除掉,保证产物正确。

from mpx.

mater1996 avatar mater1996 commented on June 20, 2024

如果用npm run serve的话,经常会出现第一次成功,之后再改动代码,编译的进度条走到一半就退出了,几乎没有办法边改边看

这个问题辛苦提供个复现repo

from mpx.

rcocco avatar rcocco commented on June 20, 2024

如果用npm run serve的话,经常会出现第一次成功,之后再改动代码,编译的进度条走到一半就退出了,几乎没有办法边改边看

这个问题辛苦提供个复现repo

https://github.com/rcocco/mpx-serve-exit
第一次npm run server会成功,然后我再次按ctrl+s保存,触发了重新打包,然后每次到65%左右就退出了

PS D:\Software\Project\demo\mpx-demo\tdesign-demo> npm run serve

> [email protected] serve
> mpx-cli-service serve   

✔ wx-development
  Compiled successfully
  assets by path components/ 134 KiB 20 assets
● wx-development █████████████████████████ building (65%) 7/7 entries 2155/2155 dependencies 663/664 modules 1 active
 ts-loader › src\global.d.ts

PS D:\Software\Project\demo\mpx-demo\tdesign-demo> 

from mpx.

mater1996 avatar mater1996 commented on June 20, 2024

如果用npm run serve的话,经常会出现第一次成功,之后再改动代码,编译的进度条走到一半就退出了,几乎没有办法边改边看

这个问题辛苦提供个复现repo

https://github.com/rcocco/mpx-serve-exit 第一次npm run server会成功,然后我再次按ctrl+s保存,触发了重新打包,然后每次到65%左右就退出了

PS D:\Software\Project\demo\mpx-demo\tdesign-demo> npm run serve

> [email protected] serve
> mpx-cli-service serve   

✔ wx-development
  Compiled successfully
  assets by path components/ 134 KiB 20 assets
● wx-development █████████████████████████ building (65%) 7/7 entries 2155/2155 dependencies 663/664 modules 1 active
 ts-loader › src\global.d.ts

PS D:\Software\Project\demo\mpx-demo\tdesign-demo> 

#1408 已修复

from mpx.

hiyuki avatar hiyuki commented on June 20, 2024

https://github.com/didi/mpx/releases/tag/v2.9.18
serve问题已修复

from mpx.

Related Issues (20)

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.