donejs add react component fails
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
donejs add react component
getting error:
Error:
```
? What is the module name of your component (e.g. pmo/home)? date1
? The class name of the component Date1
events.js:160
throw er; // Unhandled 'error' event
^
ReferenceError: /home/frank/workspace/t2/poc-datingapp/node_modules/donejs-react/component/templates/modlet/component.js:16
14| define: {
15| message: {
>> 16| value: 'This is the <%= tag %> component'
17| }
18| }
19| });
tag is not defined
at eval (eval at (/home/frank/workspace/t2/poc-datingapp/node_modules/ejs/lib/ejs.js:495:12), :26:23)
at returnedFn (/home/frank/workspace/t2/poc-datingapp/node_modules/ejs/lib/ejs.js:524:17)
at Object.exports.render (/home/frank/workspace/t2/poc-datingapp/node_modules/ejs/lib/ejs.js:332:37)
at copy.extend.process (/home/frank/workspace/t2/poc-datingapp/node_modules/mem-fs-editor/lib/actions/copy-tpl.js:12:18)
at applyProcessingFunc (/home/frank/workspace/t2/poc-datingapp/node_modules/mem-fs-editor/lib/actions/copy.js:13:16)
at EditionInterface.exports._copySingle (/home/frank/workspace/t2/poc-datingapp/node_modules/mem-fs-editor/lib/actions/copy.js:51:16)
at EditionInterface.exports.copy (/home/frank/workspace/t2/poc-datingapp/node_modules/mem-fs-editor/lib/actions/copy.js:23:17)
at EditionInterface.module.exports [as copyTpl] (/home/frank/workspace/t2/poc-datingapp/node_modules/mem-fs-editor/lib/actions/copy-tpl.js:10:8)
at /home/frank/workspace/t2/poc-datingapp/node_modules/donejs-react/component/index.js:85:15
at Array.forEach (native)
Error: Command `/home/frank/workspace/t2/poc-datingapp/node_modules/.bin/donejs` did not complete successfully
at ChildProcess. (/usr/local/lib/node_modules/donejs/lib/utils.js:51:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
```
gets fixed by #7
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.