Alpine script error #2146
Answered
by
Tim-Wils
Chandler-Zhu
asked this question in
1. Help
Alpine script error
#2146
-
I came across this blog post and I wanted to recreate the example myself, but when I run my code in jsfiddle, it just prompt me "Script error." That is not very helpful. Here is my code: |
Beta Was this translation helpful? Give feedback.
Answered by
Tim-Wils
Sep 29, 2021
Replies: 1 comment
-
@Chandler-Zhu The script is not deferred in jsFiddle, that's why you get the error. I removed it from the sources and added it to the html just like how alpinejs.dev does it https://jsfiddle.net/hn1wuLe5/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Chandler-Zhu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Chandler-Zhu The script is not deferred in jsFiddle, that's why you get the error. I removed it from the sources and added it to the html just like how alpinejs.dev does it https://jsfiddle.net/hn1wuLe5/