Skip to content

Commit

Permalink
Remove laravel-jestream package when upgrading (#656)
Browse files Browse the repository at this point in the history
* Remove laravel-jestream package when upgrading

When the package is left installed, it causes the following error to be thrown:

```
Uncaught (in promise) TypeError: this.inertiaPage().errorBags is undefined
```

* Update UPGRADE.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
ngunyimacharia and taylorotwell authored Jan 28, 2021
1 parent daa199f commit fc4125f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,18 @@ Fortify::confirmPasswordView(function () {
return view('auth/confirm-password');
});
```

#### Remove [laravel-jetstream](https://www.npmjs.com/package/laravel-jetstream) NPM Package

As of the Jetstream 2.0 release, this library is no longer necessary as all of its features have been incorporated into Inertia itself. You should remove the following from your `resources/js/app.js` file:

```
import {InertiaForm} from 'laravel-jetstream';
Vue.use(InertiaForm);
````
Finally, you may remove the package:
`npm uninstall laravel-jetstream`

0 comments on commit fc4125f

Please sign in to comment.