dschewchenko / nuxt-svgicon

MIT License
6 stars 4 forks source link

Throws error on build, even with default config #2

Closed ovsw closed 5 years ago

ovsw commented 5 years ago

After following the install instructions:

{
  modules: [
    'nuxt-svgicon'
  ]
}

Throws a few errors: first in the terminal, after running npm run dev wile compiling, it prints: Generated assets\svg\assets\assets\assets\assets\assets\<< this "\assets\" part of the path repeats a few hundreds if not thousands of times, didn't want to paste it here for sanity's sake>>\assets\assets\assets\\index.js

Pretty sure that's not normal, looks like a recursive issue. Then the build fails with:

npm ERR! code ELIFECYCLE
npm ERR! errno 3221225725
npm ERR! myapp@1.0.0 dev: `nuxt`
npm ERR! Exit status 3221225725

I've attached the error log if you need to take a look. 2018-11-18T19_57_15_035Z-debug.log

It does seem to generate the correct files and structure. For an svg file: assets/svs/cabin.svg it creates:

assets
  ├ cabin.svg
  └ bundle
        ├ svg
        |  └ cabin.js 
        └ index.js

Using latest version of nuxt 2 with node v 10.13.0 and npm v6.4.1

Let me know if you need more info.

Thanks!

dschewchenko commented 5 years ago

Thx, I will check it

dschewchenko commented 5 years ago

I cannot to reproduce this issue. @ovsw Help me please. What is your structure of assets directory before building?