Upgrade AlpineJS3
Hi there,
Which project are you referring to? Would you mind sharing your code snippet as well?
There has been the same error reported in the Alpine repo here:
But the solution is individual to the specific code in question.
Hey!
Yes, to update Alpine.js to v3, you would need to change the package.json
file and update the version there, followed by an npm install
.
However there would be the need to do quite a few changes to update the Alpine v2 references in the theme to the new syntax. So it will not be just a matter of changing the version as there are some breaking changes.
I will look into submitting a PR with all of the necessary changes in the next few weeks as well.
Hey,
Just a quick update here, the TALL stack theme has been upgraded to Apline.js V3 and there is a PR for this:
https://github.com/thedevdojo/wave-pro/pull/133
Best,
Bobby