VueJs and AlpineJS on the same page #746
Replies: 6 comments 5 replies
-
@abasse Have you got an example of the code, this just makes it a bit easier to help you out. |
Beta Was this translation helpful? Give feedback.
-
During a chat on Discord we figured out that I haven't tested it but you might try adding |
Beta Was this translation helpful? Give feedback.
-
Bumping this as I have both VueJS and AlpineJS in the same app and Alpine is throwing errors for HTML that uses the shorthand <a :href="project_link"></a>
|
Beta Was this translation helpful? Give feedback.
-
@SimoTod I just removed every instance of x-data (not using x-init) in the app and have Alpine (3.9.5) loading via CDN and it's throwing the errors on the vue component. I'll see if I can put together a codepen of the issue occuring. |
Beta Was this translation helpful? Give feedback.
-
Ok, this might be an issue when using Alpine with the Turbo library https://github.com/hotwired/turbo I can't reproduce the error in basic site, but when I transition between pages using Turbo, the error appears. Producing a test case for this using Turbo might be a bit more work, but I'll see if I can come up with something. |
Beta Was this translation helpful? Give feedback.
-
@akaspick have you managed to get the 2 working together with Turbo? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use AlpineJS on a page area that is part of a bigger VueJS application.
I have some trouble to run a template tag. Any suggestions, ideas if this is possible and how this can be done.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions