The package doesn't seem to work with Angular 6
See original GitHub issueI 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:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top 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 >
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 Free
Top 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
@shailesh1729 I fixed this by adding “electron” to my project.
npm install electron --save-dev
Hope this helps!
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