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
Laravel 5.3's default javascript scaffolding requires resources/assets/js/bootstrap.js at the top of the resources/assets/js/app.js file. The bootstrap.js file has side effects when required that mutates the window object due to the way that the vue and vue-resource packages install themselves globally.
Side effects
Package
Side Effect
vue
Installs property Vue onto window
vue-resource
Installs property http onto window.Vue
Issue
The issue here is that this library is checking for a global instead of a property on the window. This becomes apparent when using this library without bootstrap.js scaffolding shipped with Laravel 5.3.
The text was updated successfully, but these errors were encountered:
Background
Laravel 5.3's default javascript scaffolding
require
sresources/assets/js/bootstrap.js
at the top of theresources/assets/js/app.js
file. Thebootstrap.js
file has side effects when required that mutates thewindow
object due to the way that thevue
andvue-resource
packages install themselves globally.Side effects
vue
Vue
ontowindow
vue-resource
http
ontowindow.Vue
Issue
The issue here is that this library is checking for a global instead of a property on the
window
. This becomes apparent when using this library withoutbootstrap.js
scaffolding shipped with Laravel 5.3.The text was updated successfully, but these errors were encountered: