Describe Your Question
I would like to create a mode. Following the docs, I ran “yarn run cli create-mode”, answered all the questions, but the cli crashes partway through
Using OHIF 3.8
What steps can we follow to reproduce the bug?
- yarn run cli create-mode
? What is the license of your mode? MIT
✔ Copying template files
✖ Editing Package.json with provided information
→ Bad control character in string literal in JSON at position 665
Creating a License file
Creating a Readme file
undefined:20
"@ohif/core": "^3.8.1
SyntaxError: Bad control character in string literal in JSON at position 665
at JSON.parse (<anonymous>)
at editPackageJson (file:///home/steve/ohif/Viewers/platform/cli/src/commands/utils/editPackageJson.js:14:28)
at Task.task (file:///home/steve/ohif/Viewers/platform/cli/src/commands/createPackage.js:35:21)