Update 3.x initialization instructions to defer start() until after window load #1508
clinejj
started this conversation in
3. Feature Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into an issue following the 2.x->3.x upgrade guide related to initialization. With our Rails/Webpack application,
Alpine.start()needed to be deferred until after window load otherwise we'd receive this error:The code used in our import was:
This was fixed by wrapping
Alpine.start()like so:It may be helpful to add a note in the upgrade guide in case others run into this issue.
Beta Was this translation helpful? Give feedback.
All reactions