Template React & React+TypeScript
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
The two templates React & React+TypeScript got the same error when using electron-forge start
but not the others.
It seems to be related to electron-devtools-installer but it’s visible only on those two templates.
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.<anonymous> (/Users/davidroman/Business/forks/my-new-type/node_modules/electron-devtools-installer/dist/index.js:42:16)
at Object.<anonymous> (/Users/davidroman/Business/forks/my-new-type/node_modules/electron-devtools-installer/dist/index.js:122:3)
at Module._compile (module.js:569:30)
at Object.require.extensions.(anonymous function) [as .js] (/Users/davidroman/Business/forks/my-new-type/node_modules/electron-compile/lib/require-hook.js:77:14)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
What command line arguments are you passing?
None
What does your config.forge
data in package.json
look like?
Basic ones from the template Rect & React+TypeScript
To reproduce, i just have to use the init command with the correct template : react or typescript
electron-forge init my-new-typescript --template=react-typescript
or
electron-forge init my-new-react --template=react
Just start the projet and I hope someone will have the same error.
The other templates are working.
Does I’m the only one ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
React Typescript Website Templates | ThemeForest
Get 47 react typescript website templates on ThemeForest such as Nowa – React TypeScript Admin Template, Indice - Directory Listing Functional React Next.js ......
Read more >Adding TypeScript - Create React App
To start a new Create React App project with TypeScript, you can run: npx create-react-app my-app --template typescript
Read more >React template with Typescript, Jest and others - GitHub
React template with Typescript, Jest and others. Contribute to reactivando/template-react-typescript development by creating an account on GitHub.
Read more >10+ Impressive Typescript React Admin Template 2023
Check out the collection of easy to use Typescript React admin template to create awesome web applications for your upcoming projects.
Read more >Create React App and TypeScript: A Quick How-To | Built In
You can start a new TypeScript app using templates. To use our provided TypeScript template, append --template typescript to the creation ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@davidroman0O I just fixed this in
electron-devtools-installer
, if you re-init or just update theelectron-devtools-installer
dep to2.2.3
it should work fine 👍The summary of this issue is exactly the same as #390, except you mentioned that it only happens with the react* templates. The reason why is also exactly the same (an issue with a dependency in just those templates). It would be preferred if the summary was edited to include new information, instead of creating a new issue.