Git Product home page Git Product logo

nuxt-svgicon's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nuxt-svgicon's Issues

Build error on windows Linux builds normally

Describe the bug
After the build is run, the svg directory is infinitely looped nested, causing an error

To Reproduce
Steps to reproduce the behavior:

  1. Running project

Screenshots
image

Desktop (please complete the following information):

  • OS: windows 10
  • Node: 13.0.1

Instructions, please :)

Hi! Can you please add instructions on how to use? Tried to figured it out on my own but I'm a nuxt novice and couldn't do it.. Will help with testing!

Thanks for your work!

Error on when run dev

When I run dev server the index.js was import wrong files so I get error file not found.

My nuxt config:

[
  'nuxt-svgicon', {
      tagName: 'svg-icon',
      sourcePath: 'svg-icons',
      targetPath: 'components/compiled-icons',
    }
]

I put all svg icons in svg-icons folder

The generated files in components/compiled-icons folder:

image

The components/compiled-icons/index.js file:

/* eslint-disable */
import './chevron-up-circle.js'
import './new-solid.js'
import './plus-circle.js'

Please help me :(

Build error on windows

With default config the package generate as below image so I get error cause missing imported files. Please help me :(

image

I try to use the config below but no icon appear on browser.

[
      'nuxt-svgicon',
      {
        tagName: 'svg-icon', // usage: <svg-icon name="icon-name"></svg-icon>
        sourcePath: './assets/svg',
        targetPath: './assets/svg/bundle',
        subDir: './assets/svg',
      }
    ],

Throws error on build, even with default config

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! [email protected] 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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.