generator-fountain-webapp
generator-fountain-webapp copied to clipboard
Error message when running project: "Unnecessarily quoted property 'edit' found quote-props"
Description
I'm getting an error message when running npm run serve
just after a fresh installation of this generator
Error Message & Stack Trace
ERROR in ./src/app/components/TodoTextInput.js
/Users/myusername/dev/jhipster-lab/fountain-webapp/src/app/components/TodoTextInput.js
40:13 error Unnecessarily quoted property 'edit' found quote-props
✖ 1 problem (1 error, 0 warnings)
Config
Copy the content from .yo-rc.json
:
{
"generator-fountain-react": {
"version": "1.0.0",
"props": {
"framework": "react",
"modules": "webpack",
"js": "babel",
"ci": "",
"css": "scss",
"resolved": "/usr/local/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-react/generators/app/index.js",
"namespace": "fountain-react:app",
"_": [],
"sample": "todoMVC",
"router": "router"
}
}
}
Environment
node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v6.10.0
darwin 15.6.0
yo --version
1.8.5
npm --version
3.10.10
The error message goes away when I removed the quotes from the edit
property.
File: TodoTextInput.js:38-42
className={
classnames({
'edit': this.props.editing,
'new-todo': this.props.newTodo
})}
After fix:
className={
classnames({
edit: this.props.editing,
'new-todo': this.props.newTodo
})}
Yep, that fixed it. Thanks a million!
Thanks, Felipe!
Yup, was having same issue, thanks for posting solution.
Nice one, fixed the issue. Problem can be found near the bottom of the 'src/app/components' folder.
should be: className={ classnames({ edit: this.props.editing, 'new-todo': this.props.newTodo })}
original is: className={ classnames({ 'edit': this.props.jditing, 'new-todo': this.props.newTodo })}
Still in TodoTextInput.js 40:13 the singlequotes should be removed.
Fixed the issue for me also. Thanks!!!