You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting different errors when trying to build a site using grunt-assemble 0.4.0
When I run grunt --foce --verbose I get the following errors:
Building pages...
Warning: Source files not found. Used --force, continuing.
Information compiled
. . .
Assembling pages...
>> 0 pages assembled.
Step 17 assembled.
Calling step 18
Step 18 assembled.
Build completed. Returning
Done, but with warnings.
but when I just run grunt with a default target of assemble I get:
[18:13:40] carlos@rivendell new-site 1478$ grunt
Running "assemble:layout" (assemble) task
Warning: Unable to parse "./templates/layouts/default-layout.hbs" file (Unexpected token <). Use --force to continue.
Aborted due to warnings.
Why am I getting different errors? I would expect that if grunt-assemble cannot find the source files it'll tell me before failing to build the pages.
What does the unexpected token warning mean? Is this a grunt-assemble issue or a handlebars one?
I'm inclined to think it's a grunt-assemble issue because I've tried to build content from the templates using http://tryhandlebarsjs.com/ and it build successfully.
Just in case it helps, here is the dev-dependencies from my package.json:
It looks like you have a typo in the configuration. The layout and partials properties should be inside the options block next to marked. I think there's an extra } someplace and grunt is trying to run it like a target... see in the output where it says assemble:layout... you should only see assemble:projects and assemble:posts.
I'm getting different errors when trying to build a site using grunt-assemble 0.4.0
When I run
grunt --foce --verbose
I get the following errors:but when I just run
grunt
with a default target of assemble I get:Why am I getting different errors? I would expect that if grunt-assemble cannot find the source files it'll tell me before failing to build the pages.
What does the unexpected token warning mean? Is this a grunt-assemble issue or a handlebars one?
I'm inclined to think it's a grunt-assemble issue because I've tried to build content from the templates using http://tryhandlebarsjs.com/ and it build successfully.
Just in case it helps, here is the dev-dependencies from my package.json:
and the task from my Gruntfile (commented as I've been swapping things in and out to see if they work or not)
The text was updated successfully, but these errors were encountered: