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.

Failed to create react-typescript-electron project

See original GitHub issue

Unable to create typescript-webpack project using the

https://www.electronforge.io/templates/typescript-+-webpack-template

yarn create electron-app my-new-app --template=typescript-webpack 
An unhandled rejection has occurred inside Forge:
TypeError: Cannot destructure property 'copyCIFiles' of 'undefined' as it is undefined.
    at TypeScriptWebpackTemplate.initializeTemplate (/Users/jega/.config/yarn/global/node_modules/@electron-forge/template-base/src/BaseTemplate.ts:15:56)
    at TypeScriptWebpackTemplate.initializeTemplate (/Users/jega/.config/yarn/global/node_modules/@electron-forge/template-typescript-webpack/src/TypeScriptWebpackTemplate.ts:25:17)
    at _default (/Users/jega/.config/yarn/global/node_modules/create-electron-app/node_modules/@electron-forge/core/src/api/init-scripts/init-custom.ts:55:42)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at _default (/Users/jega/.config/yarn/global/node_modules/create-electron-app/node_modules/@electron-forge/core/src/api/init.ts:51:5)
    at /Users/jega/.config/yarn/global/node_modules/create-electron-app/node_modules/@electron-forge/cli/src/electron-forge-init.ts:29:3

Electron Forge was terminated. Location:
{}
error Command failed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Jan 3, 2020

You probably have an old version of @electron-forge/cli installed globally. Check via npm list --global @electron-forge/cli.

0reactions
jega-mscommented, Jan 9, 2020

You probably have an old version of @electron-forge/cli installed globally. Check via npm list --global @electron-forge/cli.

Thanks it’s working .

I have uninstall the old version and install the latest "

yarn global remove create-electron-app 
yarn global add @electron-forge/cli  
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create react-typescript-electron project #1374 - GitHub
Unable to create typescript -webpack project using the https://www.electronforge.io/templates/typescript-+-webpack-template yarn create ...
Read more >
Create-React-App with TypeScript failing to compile after ...
I've created a new React app by running npx create-react-app@latest --typescript . and I've run the project using npm start and it all...
Read more >
Build an Electron app with Typescript and React - Codiga
You can use the following commands to get an app started. Make sure you insert your project name! COPY git clone --depth 1...
Read more >
Start a new Electron app with React and Typescript.
In this tutorial, I'll show you how to start an electron project from scratch using webpack, react, and Typescript.
Read more >
React + Electron + Typescript — A Dev Experience (part 2)
Preparing Typescript-based Create React App; Adding Material UI ... available at the first run and therefore — Electron script may fail.
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