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.

The package doesn't seem to work with Angular 6

See original GitHub issue

I was trying to build an electron-angular application. After installing the package via npm, adding it to dependencies, and then importing it in app.module.ts, here is the error I am getting: ERROR in node_modules/ngx-electron/src/electronService.d.ts(1,27): error TS2307: Cannot find module 'electron'. node_modules/ngx-electron/src/electronService.d.ts(16,23): error TS2503: Cannot find namespace 'NodeJS'.

Not sure what to do now.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jvaescommented, Jul 13, 2018

@shailesh1729 I fixed this by adding “electron” to my project.

npm install electron --save-dev

Hope this helps!

1reaction
vieillecamcommented, Feb 17, 2020

Not sure I understand why we have to include the ‘electron’ package inside our WebApp in order to be packaged in… Electron… For me, it has been resolved only by adding the electron types to the dev dependencies.: npm install -D @types/electron

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap not working properly in Angular 6 - Stack Overflow
I've mannually removed the modules from node_modules and reinstalled the modules. It worked for me. I've provided the solution in this post ...
Read more >
Angular package format
This document describes the Angular Package Format (APF). ... APF enables a package to work seamlessly under most common scenarios that use Angular....
Read more >
Upgrading an Application to Angular 6: Step By Step - Blog
1. The first step was to update to the latest version of the Angular CLI: · 2. From there I went into my...
Read more >
Angular 6 jquery UI Date Picker Custom Widget doesn't seem ...
I have been trying to get jquery UI date picker custom widget work on both Editor and Library side using Angular CLI 6.15...
Read more >
Upgrade Angular 5 app to Angular 6 with Visual Studio 2017
Find out how to upgrade Angular 5 app to Angular 6 with Visual Studio 2017. Angular-cli.json is replaced with angular.json in Angular 6....
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