Skip to content
This repository was archived by the owner on May 29, 2020. It is now read-only.

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

Open
hagenbauer opened this issue Apr 1, 2018 · 2 comments
Open

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

hagenbauer opened this issue Apr 1, 2018 · 2 comments

Comments

@hagenbauer
Copy link

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
Copy link
Collaborator

alampros commented Apr 4, 2018

Did you try running grunt in --verbose mode?

@hagenbauer
Copy link
Author

yes. this is --verbose

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants