Error with custom app.config.globalProperties._
Version
3.0.2
Reproduction link
https://codesandbox.io/s/compassionate-leakey-1wwix?file=/src/main.js
Steps to reproduce
When add lodash app.config.globalProperties._ = _;
, there's a error.
Does vue3 disable custom globalProperties._
?
What is expected?
No error
What is actually happening?
Uncaught (in promise) TypeError: Cannot read property '__v_raw' of undefined
"_" is a reserved name,
But we don'T check for this when a globalProperty is assigned, as globalProperties
is a simple object.
to check for this reserved name, we would have to use a special object with a getter/setter or a proxy during development.