Hey everyone,
I'm upgrading a project from a colleague to make use of compiling a single JS file with npm modules instead of using several script tags.
I noticed that we're using the $screen helper (and perhaps more :) ), so I updated our app.js file to the following:
import Alpine from 'alpinejs'
import Toolkit from '@alpine-collective/toolkit'
Alpine.plugin(Toolkit)
window.Alpine = Alpine
window.Alpine.start()
Unfortunately every time I try I to use this in the browser, I get the following error in the console:

I tried different Alpine versions, but I'm not sure what could be causing this. Am I importing this wrong?
Thanks!
PS: I also tried opening an issue in the v3 repo, but was redirected here. Don't know if that's on purpose or if you forgot to update the link.
Hey everyone,
I'm upgrading a project from a colleague to make use of compiling a single JS file with
npmmodules instead of using several script tags.I noticed that we're using the
$screenhelper (and perhaps more :) ), so I updated ourapp.jsfile to the following:Unfortunately every time I try I to use this in the browser, I get the following error in the console:
I tried different Alpine versions, but I'm not sure what could be causing this. Am I importing this wrong?
Thanks!
PS: I also tried opening an issue in the v3 repo, but was redirected here. Don't know if that's on purpose or if you forgot to update the link.