Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

v1.1.11: You must pass a string or Handlebars AST to Handlebars.compile. #40

Open
PierreGUI opened this issue Mar 22, 2016 · 2 comments
Milestone

Comments

@PierreGUI
Copy link

Since version 1.1.11 I have an error when assembling (see below). Worked fine with v1.1.10, my architecture is something like:

src
    materials
        components
            01-logos
                01-logo-dark
                02-logo-light
            02-whatever
                01-something
                02-something-else

As I was looking to find the reason behind it, turns out the error is gone when removing the numbers in front on the first level folder of the component, ie: 01-logos becomes 'logos' and so on...

Reverting commit d52fad9 works great. I guess the regex is not the one yet... :)

The error I'm talking about:

Error (fabricator-assemble): You must pass a string or Handlebars AST to Handlebars.compile. You passed undefined
 Error: You must pass a string or Handlebars AST to Handlebars.compile. You passed undefined
    at Object.compile (.../node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:464:11)
    at HandlebarsEnvironment.hb.compile (.../node_modules/handlebars/dist/cjs/handlebars.js:38:41)
    at Object.<anonymous> (.../node_modules/fabricator-assemble/index.js:562:20)
    at Object.eval (eval at createFunctionContext (.../node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:221:23), <anonymous>:9:78)
    at Object.ret (.../node_modules/handlebars/dist/cjs/handlebars/runtime.js:159:30)
    at Object.ret [as f-item-content] (.../node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:488:21)
    at Object.invokePartialWrapper [as invokePartial] (.../node_modules/handlebars/dist/cjs/handlebars/runtime.js:65:46)
    at Object.eval (eval at createFunctionContext (.../node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:221:23), <anonymous>:12:23)
    at prog (.../node_modules/handlebars/dist/cjs/handlebars/runtime.js:193:15)
    at execIteration (.../node_modules/handlebars/dist/cjs/handlebars/base.js:155:19)
rbarilani added a commit to zalando/dress-code that referenced this issue Mar 23, 2016
rbarilani added a commit to zalando/dress-code that referenced this issue Mar 23, 2016
rbarilani added a commit to zalando/dress-code that referenced this issue Mar 23, 2016
rbarilani added a commit to zalando/dress-code that referenced this issue Mar 23, 2016
rbarilani added a commit to zalando/dress-code that referenced this issue Mar 30, 2016
alienlebarge added a commit to DSI-VD/foehn that referenced this issue Apr 5, 2016
@alienlebarge
Copy link

Same here. After a downgrade to 1.1.10 everything seams OK.

@alienlebarge
Copy link

Can it be a problem with the regex ?
See #31

@LukeAskew LukeAskew added this to the 2.0 milestone Jun 9, 2016
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

3 participants