question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
MarshallOfSoundcommented, Dec 17, 2017

@davidroman0O I just fixed this in electron-devtools-installer, if you re-init or just update the electron-devtools-installer dep to 2.2.3 it should work fine 👍

1reaction
maleptcommented, Dec 17, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found