We've moved discussions to Discord

looking to use alpine.js...

Bob Walsh
but after doing npm, the require('alpinejs') keeps throwing about 20 "Uncaught ReferenceError: app is not defined" errors.

any guidance re where to place require('alpinejs')? (Yes, I did try right after // ADD YOUR JAVACSRIPT HERE...)
Chris Oliver
I would personally just use Stimulus instead of Alpine that way it's all consistent.

That said, I would just include Alpine from CDN. You don't need to initialize anything so that's really easy and possibly already cached by the browser from using another site that uses Alpine.
Notifications
You’re not receiving notifications from this thread.