rails / webpacker

Use Webpack to manage app-like JavaScript modules in Rails
MIT License
5.31k stars 1.47k forks source link

Webpacker 6 and AlpineJS #3228

Closed jeremybdk closed 2 years ago

jeremybdk commented 2 years ago

Hello, I'm having a hard time figuring out how to get AlpineJS work with Webpacker 6 latest RC. Here is my application.js according to the readme and documentation I've seen online

require("@rails/ujs").start()
require("turbolinks").start()

import 'alpine-turbo-drive-adapter'
import 'alpinejs'

import 'regenerator-runtime/runtime'

import "./application.scss"

Am I missing something obvious?

Thanks for your help

jeremybdk commented 2 years ago

So I was using alpine 3 but all the guide out there are for alpine 2 sorry for the noise.