Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn start fail in dev with CRA v5.0.0 #12156

Open
leermao opened this issue Mar 10, 2022 · 9 comments
Open

yarn start fail in dev with CRA v5.0.0 #12156

leermao opened this issue Mar 10, 2022 · 9 comments

Comments

@leermao
Copy link

leermao commented Mar 10, 2022

image
All the time。

I cannot run it using yarn start when set splitChunks is all

@leermao
Copy link
Author

leermao commented Mar 10, 2022

Is the environment used up to date and does nothing but set splitChunk

@leermao
Copy link
Author

leermao commented Mar 11, 2022

so I cannot set up weppack optimization in the dev environment. I found that the main setting for optimization cannot use yarn start to startup environment

@leermao leermao changed the title I cannot run it using yarn start when set splitChunks is all yarn start fail in dev with CRA v5.0.0 Mar 11, 2022
@h025
Copy link

h025 commented Apr 8, 2022

I have encountered the same problem. Have you found a solution?
我遇到了相同的问题,请问你找到了解决方法了吗?

@nbili
Copy link

nbili commented Apr 28, 2022

Reappearance:

  • npx create-react-app my-app
  • run npm run eject
  • set webpack.config.js optimization

eq: the demo

@nbili
Copy link

nbili commented Apr 28, 2022

I have encountered the same problem. Have you found a solution? 我遇到了相同的问题,请问你找到了解决方法了吗?

This appears to be resolved: #11963 (comment)

@jeron-diovis
Copy link

This appears to be resolved: #11963 (comment)

@nbili it does not resolve the issue. It works for production build, but does nothing with dev mode.

@Dineshchitta
Copy link

Is there any issue specified regarding this in webpack repo? or any response from webpack team?

Above one would not be permanent solution I guess

@HeWei-imagineer
Copy link

Encounter the same issue, is anyone fixing it?

@tengl
Copy link

tengl commented Oct 26, 2023

I encountered the same issue, I'm using craco to configure webpack.

This doesn't solve it, just a workaround, but might help someone in the future.

webpack: {
    ...whenProd(() => {
      return {
        configure: {
          optimization: {
            splitChunks: { 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants