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.

Can @types/electron be removed as a devDependency?

See original GitHub issue

I’m pulling ngx-electron into my project as a dependency, which has a dependency on @types/electron, which appears to have a dependency on electron. This causes my Angular app’s node_modules to have a complete electron distribution in it, which it never uses. However, when I then use electron-builder, it dutifully pulls it in. According to this (https://www.npmjs.com/package/@types/electron), there is no reason to include @types/electron anymore. Should it be removed entirely?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ThorstenHanscommented, Jun 23, 2017

@walkingriver thanks for the input I’m closing this due to the currently working ‘workaround’ 😄 and the upcoming release mentioned in #11

0reactions
ThorstenHanscommented, Jun 23, 2017

thanks for the offer. I’ve just published 1.0.3 on npmjs perhaps can you try it in your scenario / build. I’ve tested and verified functionality with @angular/cli based samples.

@walkingriver

related to #10

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Electron need to be saved as a developer ...
The fact that you require a package is irrelevant to whether it should be considered a dependency or a devDependency (in the npm...
Read more >
electron-react-typescript
A Boilerplate for an Easy Start with TypeScript, React, and Electron.. Latest version: 0.0.7, last published: 3 years ago.
Read more >
@electron-forge/cli | Yarn - Package Manager
Electron Forge unifies the existing (and well maintained) build tools for Electron development into a simple, easy to use package so that anyone...
Read more >
Creating Angular Desktop Apps with Electron
Before we can start working on our electron angular app, ... irrelevant for the running application, we add it as dev-dependency, as well....
Read more >
What is Electron Microscopy?
The transmission electron microscope is used to view thin specimens (tissue sections, molecules, etc) through which electrons can pass generating a ...
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