iconoir-icons / iconoir

An open source icons library with 1600+ icons, supporting React, React Native, Flutter, Vue, Figma, and Framer.
https://iconoir.com
MIT License
3.88k stars 169 forks source link

Vue 2 package doesn't work #319

Open jonadeline opened 1 year ago

jonadeline commented 1 year ago

Hi, I cannot make the iconoir vue package work in a Vue 2 project, I got many errors listed below when running the project I did a simple sandbox here reproducing the issue.
Any help would be appreciated. Thank you in advance :)

 ERROR  Failed to compile with 9 errors                               5:27:18 AM

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

"export 'createElementBlock' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

"export 'createElementVNode' was not found in 'vue'
 ERROR  Failed to compile with 9 errors                               5:29:10 AM

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

"export 'createElementBlock' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

"export 'createElementVNode' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/esm/3dBridge.mjs

"export 'createStaticVNode' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

"export 'mergeProps' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

"export 'openBlock' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/IconoirProvider.vue_vue_type_script_setup_true_lang-500a4b50.mjs

"export 'renderSlot' was not found in 'vue'

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

Can't import the named export 'defineComponent' from non EcmaScript module (only default export is available)

 error  in ./node_modules/@iconoir/vue/dist/esm/3dAddHole.mjs

Can't import the named export 'inject' from non EcmaScript module (only default export is available)

 error  in ./node_modules/@iconoir/vue/dist/IconoirProvider.vue_vue_type_script_setup_true_lang-500a4b50.mjs

Can't import the named export 'provide' from non EcmaScript module (only default export is available)

Upvote & Fund

Fund with Polar

sammarks commented 1 year ago

https://github.com/vueuse/vue-demi/issues/161 - This seems to be related.