Alpine Trap plugin merged into Alpine Focus
This update only changes the installation commands, stub file.
In your existing projects you need to install the Alpine Focus plugin and remove the Alpine Trap plugin.
The reason is that Caleb merged the Trap plugin into the new Focus plugin.
npm install @alpinejs/focus
change your app.js to something like this:
import Alpine from 'alpinejs'
import focus from '@alpinejs/focus'
import collapse from '@alpinejs/collapse'
require('./bootstrap');
window.Alpine = Alpine
Alpine.plugin(focus)
Alpine.plugin(collapse)
Alpine.start()