-
Notifications
You must be signed in to change notification settings - Fork 134
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
Update outdated instructions for NuxtJS #157
Comments
If you are just using the script on one component/page, why the hassle with the plugin method? Just import the script in the page. Is there a reason for the global plugin? |
Does anyone know if this works now with Nuxt3? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Nuxt usage instructions are outdated and cause errors and warning.
This has been tested with
Nuxt 2.15.8
andVue 2.6.14
yarn add @johmun/vue-tags-input
nuxt.config.js
to register the plugin and use it in client-side rendering.The
build.vendor
entry suggested in original instructions is not needed. It now now causes build warningWARN: vendor has been deprecated due to webpack4 optimization.
See nuxt/nuxt#5544.
<client-only>
. Failing to do that causesUncaught ReferenceError: window is not defined
. Make sure your<script>
does not import the component or you get the same error.The text was updated successfully, but these errors were encountered: