Git Product home page Git Product logo

Comments (15)

jnarowski avatar jnarowski commented on July 22, 2024 3

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.

IsraelOrtuno avatar IsraelOrtuno commented on July 22, 2024 1

I made it work by adding this to the nuxt config:

  build: {
    transpile: [
      '@vueform/multiselect/dist/multiselect.vue2.js',
    ],
  },

from multiselect.

PixsaOJ avatar PixsaOJ commented on July 22, 2024 1

I used Nuxt multiselect

from multiselect.

Grawl avatar Grawl commented on July 22, 2024 1

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.

jnarowski avatar jnarowski commented on July 22, 2024

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.

adamberecz avatar adamberecz commented on July 22, 2024

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.

adamberecz avatar adamberecz commented on July 22, 2024

Feel free to reopen if you still have issue with this.

from multiselect.

jnarowski avatar jnarowski commented on July 22, 2024

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.

jnarowski avatar jnarowski commented on July 22, 2024

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.

jnarowski avatar jnarowski commented on July 22, 2024

Can we re-open this or should I create a new issue since it's still there?.

from multiselect.

stale avatar stale commented on July 22, 2024

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.

stale avatar stale commented on July 22, 2024

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.

PixsaOJ avatar PixsaOJ commented on July 22, 2024

Can we get this fixed?

from multiselect.

IsraelOrtuno avatar IsraelOrtuno commented on July 22, 2024

I think this should be opened again, bug is still there, no way to make it work with nuxt

from multiselect.

sthuber90 avatar sthuber90 commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.