Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue when using jsdelivr CDN #61

Open
chosunosu opened this issue Dec 10, 2020 · 1 comment
Open

Installation issue when using jsdelivr CDN #61

chosunosu opened this issue Dec 10, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@chosunosu
Copy link
Contributor

chosunosu commented Dec 10, 2020

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.

  1. Set the default file to formulate.min.js instead of formulate.umd.min.js
  2. 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! 👍

@justin-schroeder justin-schroeder added enhancement New feature or request good first issue Good for newcomers labels Dec 10, 2020
@justin-schroeder
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants