You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, let me say that Vue Formulate is pretty awesome and it definitely made my easier when creating forms.
I had used Vue Formulate using npm but for testing purposes I needed to use the minified version using the one linked in the installation page. I copied the link to the default min.js file that is shown but ended up with lots of errors.
After some investigation, I believe it's because the default link is to the UMD version. As someone new to Vue and JavaScript, I wasn't able to first discern the differences in the listed files.
I found two instances where similar issues occurred from using the UMD version (and the answers did not address the issue) combined with other issues that prevent proper loading.
I think there are two ways for new/inexperienced users to avoid this issue.
Set the default file to formulate.min.js instead of formulate.umd.min.js
Provide additional guidelines when using the CDN package (such as not needing import statements, only needing Vue.use(VueFormulate) in the script section and using forumlate.min.js).
I look forward to hearing your thoughts! 👍
The text was updated successfully, but these errors were encountered:
Seem like good suggestions. I definitely dont want to go down the path of needing to explain how ESM vs UMD vs CommonJS etc work, and the DOM caveats of Vue, but I think some more detailed examples of getting it working via CDN are appropriate places to start.
First, let me say that Vue Formulate is pretty awesome and it definitely made my easier when creating forms.
I had used Vue Formulate using npm but for testing purposes I needed to use the minified version using the one linked in the installation page. I copied the link to the default min.js file that is shown but ended up with lots of errors.
After some investigation, I believe it's because the default link is to the UMD version. As someone new to Vue and JavaScript, I wasn't able to first discern the differences in the listed files.
I found two instances where similar issues occurred from using the UMD version (and the answers did not address the issue) combined with other issues that prevent proper loading.
I think there are two ways for new/inexperienced users to avoid this issue.
I look forward to hearing your thoughts! 👍
The text was updated successfully, but these errors were encountered: