Created by: Vinnl
I'm not 100% sure whether main
is required to point to template.json
, but when I did not include the key altogether, I ran into the following error:
Error: Cannot find module 'cra-template-[template-name]'
Require stack:
- /tmp/my-app/node_modules/react-scripts/scripts/init.js
- /tmp/my-app/[eval]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.resolve (internal/modules/cjs/helpers.js:80:19)
at module.exports (/tmp/my-app/node_modules/react-scripts/scripts/init.js:110:13)
at [eval]:3:14
at Script.runInThisContext (vm.js:116:20)
at Object.runInThisContext (vm.js:306:38)
at Object.<anonymous> ([eval]-wrapper:9:26)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at evalScript (internal/process/execution.js:80:25)
at internal/main/eval_string.js:23:3 {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/tmp/my-app/node_modules/react-scripts/scripts/init.js',
'/tmp/my-app/[eval]'
]
}