unplugin / unplugin-icons

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

why the vue-cli-service build error with v0.14.9? #236

Closed sdklove00 closed 1 year ago

sdklove00 commented 1 year ago

Describe the bug


 ERROR  Failed to compile with 1 error                                          

  Error: Child compilation failed:
  Module parse failed: Unexpected token (1:0)
  File was processed with these loaders:
   * ./node_modules/html-webpack-plugin/lib/loader.js
   * ./node_modules/unplugin/dist/webpack/loaders/load.js
  You may need an additional loader to handle the result of these loaders.
  > <!DOCTYPE html>
  | <html lang="">
  |   <head>
image

finnally,i find is the unplugin-icons v0.14.9 and unplugin-vue-component v0.22.7 problems, i use unplugin-icons v0.14.8 and unplugin-vue-component v0.22.4 is working.

Used Package Manager

npm

Inori-Lover commented 1 year ago

face same problem

Inori-Lover commented 1 year ago

https://github.com/Inori-Lover/unplugin-icon-repo

darianstlex commented 1 year ago

seems the fix didn't solve the issue