sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.11k stars 210 forks source link

Warning: Path must be a string. Received undefined Use #380

Open hagenbauer opened 6 years ago

hagenbauer commented 6 years ago

I may be blind but I cant see my error This is my gruntfile for webfonts

grunt.initConfig({
  webfont: { test1: {
                src: '_icons/*.svg',
                dest: 'fonts',
                options: {
                    hashes: false
                }
}}});

This is my dir tree

├── assets
├── css
├── fonts
├── _icons
├── _includes
├── js
├── _layouts

But I always get this error and I cant see what path is wrong

Running "webfont:test1" (webfont) task
Verifying property webfont.test1 exists in config...OK
Files: _icons/glyphicons-196-circle-info.svg, _icons/glyphicons-517-menu-hamburger.svg, _icons/glyphicons-social-13-xing.svg, _icons/glyphicons-social-23-youtube.svg, _icons/glyphicons-social-32-twitter.svg, _icons/glyphicons-social-38-rss.svg, _icons/glyphicons-social-40-e-mail.svg -> fonts
Verifying property webfont.test1.src exists in config...OK
Verifying property webfont.test1.dest exists in config...OK
Options: hashes=false
Warning: Path must be a string. Received undefined Use --force to continue.

Aborted due to warnings.
alampros commented 6 years ago

Did you try running grunt in --verbose mode?

hagenbauer commented 6 years ago

yes. this is --verbose