You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacOS/Chrome 72
FYI: The instructions on this page to run `vue info` does not work anymore.
Steps to reproduce
Steps are so basic, no project is required.
Create a new project with vue create hello-world
Use all defaults when creating.
In new project directory, execute vue-cli-service build --mode development --modern
Try to run outputted vue app.
Result: Produced project will error with
Uncaught TypeError: Cannot read property 'webpackHotUpdate' of undefined
at app.js:5
at app.js:794
What is expected?
The issue is that globalObject should be self not this
What is actually happening?
The dev version of the code is using 'this' which fails because this is not defined. It should be self.
A fix can clearly be seen in resolveLibConfig.js that probably just never made it into dev.js
globalObject in dev.js should probably have same fix as found in resolveLibConfig.js
Version
3.4.1
Environment info
Steps to reproduce
Steps are so basic, no project is required.
vue create hello-world
vue-cli-service build --mode development --modern
Result: Produced project will error with
Uncaught TypeError: Cannot read property 'webpackHotUpdate' of undefined
at app.js:5
at app.js:794
What is expected?
The issue is that globalObject should be
self
notthis
What is actually happening?
The dev version of the code is using 'this' which fails because
this
is not defined. It should beself
.A fix can clearly be seen in resolveLibConfig.js that probably just never made it into dev.js
globalObject
in dev.js should probably have same fix as found in resolveLibConfig.jsSee:
vue-cli/packages/@vue/cli-service/lib/config/dev.js
Line 16 in 94ff7bf
vs
vue-cli/packages/@vue/cli-service/lib/commands/build/resolveLibConfig.js
Line 105 in 94ff7bf
My fix to dev.js was:
The text was updated successfully, but these errors were encountered: