Comments (15)
This is nuxtJS specific. If you want to add a NuxtJS example, here's how I fixed it:
in nuxt.config.js
{ src: '~/plugins/vue-stack-grid', mode: 'client' }
in plugins/multiselect.js
import Vue from 'vue'
import Multiselect from '@vueform/multiselect/dist/multiselect.vue2.js'
Vue.component('VMultiselect', Multiselect)
In the component
<client-only>
<v-multiselect v-model="value" :options="options" />
</client-only>
from multiselect.
I made it work by adding this to the nuxt config:
build: {
transpile: [
'@vueform/multiselect/dist/multiselect.vue2.js',
],
},
from multiselect.
I used Nuxt multiselect
from multiselect.
The same for Quasar Framework. To fix this error, I have to add @vue-form/multiselect
to build/transpileDependencies
in quasar.conf.js
:
module.exports = configure(function (ctx) {
return {
// …
build: {
// …
transpileDependencies: [
'@vueform/multiselect'
],
// …
},
// …
}
(Quasar v2 in my case)
from multiselect.
This didn't end up working in Nuxt. I was getting errors about infinite loops so I had to try and find another plugin. I love what you did though with composition, it's so clean. Any interest in ensuring this works with Nuxt and Vue2?
from multiselect.
I've created a section with Nuxt.js usage:
https://github.com/vueform/multiselect#using-with-nuxtjs
It works on a fresh install with this setup. If it's still not ok on your end please share your nuxt.config.js
.
from multiselect.
Feel free to reopen if you still have issue with this.
from multiselect.
It's still not working and this seems like the cleanest select plugin out there by far!
Here's my config:
https://gist.github.com/jnarowski/a740922bba3d9d1127ae239530773eaa
from multiselect.
I recreated with a fresh nuxt install.
Here's the code for it:
https://drive.google.com/file/d/12_r3SknguGWhaqvb2zwFTobo44wwcq5l/view?usp=sharing
Codesandbox was having issues getting the right Nuxt up and running. I'd love to use this if we can figure out what's going on. Maybe in the rollup settings?
from multiselect.
Can we re-open this or should I create a new issue since it's still there?.
from multiselect.
Hi 👋 this issue has been automatically marked as stale
📌 because it has not had recent activity 😴. It will be closed if no further activity occurs.
from multiselect.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period.
from multiselect.
Can we get this fixed?
from multiselect.
I think this should be opened again, bug is still there, no way to make it work with nuxt
from multiselect.
With vue-cli the recommendation seems to be to adjust the transformIgnorePatterns
in your jest.config.js file.
module.exports = {
// ...
transformIgnorePatterns: ["/node_modules/(?!@vueform/multiselect)"],
}
This way testing the multiselect with testing-library/vue works.
from multiselect.
Related Issues (20)
- Blur when option have a lot in mac os
- Different clearIcon svg fill color for dark and light mode HOT 2
- focus() issue HOT 1
- Missing methods in Multiselect type
- Add focus/blur event emits HOT 1
- Clicking the clear icon
- Typescript Build Error HOT 1
- can't add option with space in mobile
- Opening disabled input
- Select does not scroll to selected item when the list is large HOT 2
- `getOption` does not work when `value` is an object. HOT 1
- Empty values in createOption with trimmed value HOT 1
- Prop `closeOnScroll` doesn't work with `appendToBody`
- Expose loading state on async options HOT 1
- appendToBody on async options: dropdown position is incorrect for the first time appearance HOT 1
- [Feature Request] Choose positioning for appendToBody
- Expose default search/filter function
- issue with :append-to-body="true" in a modal.
- In mode "Tags" with an array of objects, an error message should be shown when valueProp can not be found HOT 2
- Tags mode displaying tag count limit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiselect.