question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot create property 'default' on boolean 'true'"

See original GitHub issue

Version

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:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
yyx990803commented, Apr 12, 2019

You probably have either own code or 3rd party code that was compiled using an outdated version of vue-template-compiler.

3reactions
klimentLambevskicommented, Apr 12, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found