Closed coopy closed 8 years ago
Diagnosis: require
's of modules in init.js
is not supported. Crafting better error messages and documentation.
Will potentially support init.js
dependencies as a distinct feature in the future: https://github.com/FormidableLabs/builder-init/issues/33
I'm trying to use the "File Name Parsing" feature of
builder-init
:This works (https://github.com/plotly/dash-components-archetype/tree/template-file-name-prompt):
init.js
a{{packageName}}
promptinit/{{packagename}}.txt
fileResult:
This does not work (https://github.com/plotly/dash-components-archetype/tree/template-file-name-derived):
init.js
a{{capitalCamelCasePackageName}}
derived fieldinit/{{capitalCamelCasePackageName}}.txt
fileResult:
EDITED: I copy-pasted the wrong error here before.
Note: When using the derived field, the first prompt is "? Destination directory to write", not "? Please name your component suite."
Repro: