-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Open a new project and the page shows "[HMR] Hot Module Replacement is disabled" #1634
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
Comments
check: #1617 and the last comments form @LinusBorg. i had another issue but that defined NODE_ENV in .zshrc also caused this problem on my machine. |
@podlebar |
Maybe he is using still a older version of vue-cli. |
maybe he had it set to a different value, i.e. NODE_ENV=development ...which would be the exact value vue-cli is expecting. I think it's never a good idea to have a predefined value for NODE_ENV in your environment. Many projects rely on specific values for NODE_ENV to decide how to behave, and having this injected in the background will make it hard to track a bug, since it's only happening on your machine ... |
@podlebar @LinusBorg thx! |
with windows 10 and vue 3.0.0-rc.1 i was hitting the same bug last night after putting a console.log in using cross-env to specify the |
@c0urg3tt3 You are not on the latest rc 😉 |
Version
3.0.0-rc.3
Reproduction link
https://github.com/vuejs/vue-cli
Steps to reproduce
npm install [email protected]
vue create vue-test
choose default
cd vue-test
npm run serve
What is expected?
Open the new page show the app content
What is actually happening?
The page is not automatically opened. Open localhost:8080,the page shows blank, and the console shows "Uncaught Error: [HMR] Hot Module Replacement is disabled."
I have tried many verisons of vue-cli, such as rc.2, beta.16, beta.10, this problem always appears. But in my friend's pc, he use the same version of vue-cli as me, do the same operations to create a new project, it works well.
The text was updated successfully, but these errors were encountered: