unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
4k stars 143 forks source link

cannot find package 'vue-template-es2015-compiler' #234

Closed Hyphon closed 1 year ago

Hyphon commented 2 years ago

Describe the bug

when upgrade to vue 2.7.10, project is not working as expected.

error is Cannot find package 'vue-template-es2015-compiler' imported from /home/projects/vitejs-vite-vt4gdf/node_modules/local-pkg/index.mjs

Reproduction

https://stackblitz.com/edit/vitejs-vite-vt4gdf?file=vite.config.ts

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm

Used Package Manager

npm

Validations

IreneBenito commented 1 year ago

did you find out how to solve it ? i have the same error for a vue component file access

userquin commented 1 year ago

@Hyphon @IreneBenito can you try using vue3 compiler? https://stackblitz.com/edit/vitejs-vite-zyfhyg?file=vite.config.ts

Hyphon commented 1 year ago

@Hyphon @IreneBenito can you try using vue3 compiler? https://stackblitz.com/edit/vitejs-vite-zyfhyg?file=vite.config.ts

Its ok with compiler: 'vue3', thx very much. Would there be a preset 'vue2.7' ? Vue v2.7 with compiler vue3 is a little confused for me...

userquin commented 1 year ago

@Hyphon I'll update the README later, also checking if it is required, if so I'll create a new 2.7 compiler

userquin commented 1 year ago

@Hyphon https://github.com/antfu/unplugin-icons/pull/251

Hyphon commented 1 year ago

@Hyphon #251

thank u :)