Cannot create property 'default' on boolean 'true'"
See original GitHub issueVersion
2.6.10
Reproduction link
https://codesandbox.io/s/v8r388y7y
Steps to reproduce
When i use scope slot inside scope slot i get this error. In condsandbox i could not reproduce it, but the same code i have is there It happened when i upgraded from vue 2.6.7 -> 2.6.10
What is expected?
Not to fail
What is actually happening?
The code i have in sandbox is compiled like this
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ staticClass: "google-map" },
[
_c("map-loader", {
ref: "mapLoader",
attrs: { apiKey: _vm.apiKey, mapConfig: _vm.mapConfig },
scopedSlots: _vm._u(
[
{
key: "default",
fn: function(ref) {
var google = ref.google
var map = ref.map
return [
_vm._t("slot-big-slot", null, { google: google, map: map }),
_c(
"div",
{ staticClass: "slot-container" },
[
_vm.markers.length < 2
? _vm._l(_vm.markers, function(marker) {
return _c("google-map-marker", {
key: marker.lat marker.lng,
attrs: {
marker: marker,
google: google,
map: map
}
})
})
: _vm._e(),
_vm.markers.length === 2
? _c("route", {
key:
_vm.markers[0].lat
_vm.markers[1].lat
_vm.markers[0].lng
_vm.markers[1].lng,
attrs: {
google: google,
markers: _vm.markers,
map: map
}
})
: _vm._e()
],
2
)
]
}
}
],
null,
true
)
})
],
1
)
}
var staticRenderFns = []
render._withStripped = true
export { render, staticRenderFns }
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
I get this error in React - TypeError: Cannot create property ...
The reason you are getting error TypeError: Cannot create property 'completed' on boolean 'true' is because you are passing boolean value to ...
Read more >How to fix "Cannot create property 'default' on boolean 'true'"
Coding example for the question How to fix "Cannot create property 'default' on boolean 'true'"-Vue.js.
Read more >TypeError: can't assign to property "x" on "y": not an object
In strict mode, a TypeError is raised when attempting to create a property on primitive value such as a symbol, a string, a...
Read more >getting "Cannot create property '0' on boolean 'true'" error
I want the Booking component state to be updated when the Seats Component is clicked. If I click on any button once, it's...
Read more >Vue打包后部分页面Cannot create property 'default' on ... - 简书
Vue打包后有部分页面出现Cannot create property 'default' on boolean 'true' 这个错误调试代码怎么都没找到错误,原来是打包后引用的cdn中的vue版本 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You probably have either own code or 3rd party code that was compiled using an outdated version of
vue-template-compiler
.@yyx990803 @sirlancelot @posva I had vue-template-compiler version 2.6.6 in my dev dependencies 🤦♂️, Sorry for wasting your time, I will leave you alone now