Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Prototyping with Foundation for Apps Finishing the Prototype Generating Content with Front Matter

I'm getting an error while trying to add front matter variables.

---
name: results
url: /results
animationIn: slideInLeft
activities: 
    - Hiking
    - Walking
    - Running
    - Mountain Biking
    - Fishing
---
<ul class="no-bullet">
     <li ng-repeat="activity in vars.activities">
          <input id="" type="checkbox"><label for=""></label>
     </li>
</ul>
> foundation-apps-template@1.1.0 start /Users/joelcrouse/Desktop/trekker
> gulp

[18:32:40] Using gulpfile ~/Desktop/trekker/gulpfile.js
[18:32:40] Starting 'build'...
[18:32:40] Starting 'clean'...
[18:32:40] Finished 'clean' after 19 ms
[18:32:40] Starting 'copy'...
[18:32:40] Starting 'copy:foundation'...
[18:32:40] Finished 'copy:foundation' after 331 ms
[18:32:40] Starting 'sass'...
[18:32:40] Starting 'uglify:foundation'...
[18:32:40] Starting 'uglify:app'...
[18:32:40] Finished 'uglify:app' after 163 ms
[18:32:40] Finished 'uglify:foundation' after 325 ms
[18:32:40] Starting 'uglify'...
[18:32:40] Finished 'uglify' after 5.33 Ξs
[18:32:41] Finished 'copy' after 970 ms
[18:32:41] Finished 'sass' after 1.13 s
[18:32:41] Starting 'copy:templates'...
[18:32:41] Finished 'copy:templates' after 33 ms
[18:32:41] Finished 'build' after 1.52 s
[18:32:41] Starting 'server'...
[18:32:43] Webserver started at http://localhost:8079
[18:32:43] Finished 'server' after 1.62 s
[18:32:43] Starting 'default'...
[18:32:43] Finished 'default' after 47 ms
[18:33:38] Starting 'copy:templates'...
/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/gulp-util/lib/PluginError.js:73
  if (!this.message) throw new Error('Missing error message');
                     ^

Error: Missing error message
    at new PluginError (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/gulp-util/lib/PluginError.js:73:28)
    at DestroyableTransform.bufferContents [as _transform] (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/index.js:28:19)
    at DestroyableTransform.Transform._read (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (/Users/joelcrouse/Desktop/trekker/node_modules/front-router/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at write (/Users/joelcrouse/Desktop/trekker/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
    at flow (/Users/joelcrouse/Desktop/trekker/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
    at DestroyableTransform.pipeOnReadable (/Users/joelcrouse/Desktop/trekker/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)
Error: foundation-apps-template@1.1.0 start: `gulp`
Exit status 1
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/lifecycle.js:214:16)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/spawn.js:24:14)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

1 Answer

Camilo Rendon
Camilo Rendon
5,776 Points

Hey Joel,

I went thru the same error and finally fixed it modifying the front matter variable. Mine was "well written", but it seems indentation has to be done with spaces rather than tabs. It sounds weird but it's how I solved it!

Give it a try and do let me know whether it worked for you!

Cheers,

Camilo