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

Does not work with vue2 #7

Open
mheers opened this issue Mar 15, 2022 · 3 comments
Open

Does not work with vue2 #7

mheers opened this issue Mar 15, 2022 · 3 comments

Comments

@mheers
Copy link

mheers commented Mar 15, 2022

Unfortunately it does not work with vue2 in the current version.

I created a very simple demo project using vue-cli-service:
https://github.com/mheers/vuemoji-picker-error

The cli does not report any errors, but the browsers console says:

Uncaught TypeError: Cannot read properties of undefined (reading 'ignoredElements')
    at eval (webpack-internal:///./node_modules/vuemoji-picker/dist/index.mjs:77:56)
    at Module../node_modules/vuemoji-picker/dist/index.mjs (chunk-vendors.js:1548:1)
    at __webpack_require__ (app.js:849:30)
    at fn (app.js:151:20)
    at eval (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/HelloWorld.vue?vue&type=script&lang=js&:2:72)
    at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/HelloWorld.vue?vue&type=script&lang=js& (app.js:950:1)
    at __webpack_require__ (app.js:849:30)
    at fn (app.js:151:20)
    at eval (webpack-internal:///./src/components/HelloWorld.vue?vue&type=script&lang=js&:2:286)
    at Module../src/components/HelloWorld.vue?vue&type=script&lang=js& (app.js:1112:1)
@wobsoriano
Copy link
Owner

wobsoriano commented Mar 16, 2022

Looks like some of the related issues in vue-demi. You can go back to 0.0.7 for now if my latest commit didn't fix it

@mheers
Copy link
Author

mheers commented Apr 4, 2022

It seems like it depends on the versions of the devDependencies:

This works with v0.1.4:

    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-plugin-typescript": "~5.0.0",
    "@vue/cli-service": "~5.0.0",

And this does not work:

    "@vue/cli-plugin-babel": "^4.5.14",
    "@vue/cli-plugin-eslint": "^4.5.14",
    "@vue/cli-plugin-typescript": "^4.5.14",
    "@vue/cli-service": "^4.5.14",

@wobsoriano
Copy link
Owner

vueuse/vue-demi#152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants