Coder Social home page Coder Social logo

Comments (7)

njugray avatar njugray commented on May 1, 2024

报错信息: configuration.entry should be one of these: ...

标识当前 webpack 配置中没有有效的 entry

在修改文件名, 删除文件时, beidou 会监听文件变化, 重新计算默认entry, 如果最终entry为空, 会导致上述错误

重新添加entry, 会自动恢复.

或者在控制台输入 rs + enter, 强制重启webpack server

在 windows 10 + cmd/mingw 下测试生效

from beidou.

animecc44 avatar animecc44 commented on May 1, 2024

rs+enter确实可以,只是不能ctrl+s,虽然还是要重启服务,但是省去了yarn dev的操作,非常感谢!但是在client层还是不行,rs+enter还是不能启动服务。

from beidou.

njugray avatar njugray commented on May 1, 2024

@animecc44 服务重启宕机的问题我没能复现, 麻烦提供下详细信息:

  1. 系统版本
  2. shell 类型和版本
  3. 使用了哪个example工程
  4. 在新初始化的工程下是否存在此问题

from beidou.

animecc44 avatar animecc44 commented on May 1, 2024

@njugray

1.系统版本号:windows 10 专业版 64位(10.0 版本16299)
2.shell类型和版本:Major Minor Build Revision
----- ----- ----- --------
5 1 16299 64
3.example为antd-admin
4.新初始化的工程下也存在此问题

from beidou.

ahungrynoob avatar ahungrynoob commented on May 1, 2024

�我也发现类似问题,由于我自定义添加了一些entry,导致ctrl+s的时候,自定义添加的entry会失效,此时需要重新npm run dev,能不能在监听文件变化的时候,重新计算最近一次的entry,这样做的话会不会有什么问题,比如添加了一个入口文件这样的变化就收录不到了

from beidou.

njugray avatar njugray commented on May 1, 2024

@ahungrynoob

https://github.com/alibaba/beidou/blob/master/packages/beidou-webpack/agent.js#L28

你说的这个逻辑已经有了的,mac下是好的,我在windows虚拟机里一直没有复现

from beidou.

njugray avatar njugray commented on May 1, 2024

No more feedback, close

from beidou.

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.