got this error after created electron application and try to open - javascript

Uncaught Exception:
Error: ENOENT: no such file or directory, open 'windowData.json'
at Object.openSync (fs.js:447:3)
at Object.func (electron/js2c/asar.js:140:31)
at Object.func [as openSync] (electron/js2c/asar.js:140:31)
at Object.readFileSync (fs.js:349:35)
at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
at App.createWindow (/opt/webtodesktop/resources/app.asar/main.js:12:21)
at App.emit (events.js:208:15)
i have generated an electron application for linux .when I try to open my application after installation it gets above error .
main.js file uses windowData.json file to read window options (height,width,url).

Related

How to resolve the given error by Angular after production build(Subscription is not defined)?

I have a angular app that runs fine in ng build and served to my ASP.net core web server, but when i build the same application by ng build --prod command the project build successfully but when i serve my wwwroot folder in web server i am getting this error:-
Uncaught ReferenceError: Subscription is not defined
at Module.zUnb (main.2fbc30c2b70c6b016365.js:1)
at f (runtime.8844839a3cc2e01b8d02.js:1)
at Object.0 (main.2fbc30c2b70c6b016365.js:1)
at f (runtime.8844839a3cc2e01b8d02.js:1)
at t (runtime.8844839a3cc2e01b8d02.js:1)
at Array.r [as push] (runtime.8844839a3cc2e01b8d02.js:1)
at main.2fbc30c2b70c6b016365.js:1
and nothing appears on webpage. I have read about this on web but cannot resolved this error. What could be the reason for this error or how can i solve this. Please dont mind i have recently start with web development.Thankyou.
Update 1 : Upon running ng serve --prod sourceMap=true getting this error :-
Uncaught ReferenceError: Subscription is not defined at
Module.zUnb (SubjectSubscription.js.pre-build-optimizer.js:7)
at f (bootstrap:78)
at Object.0 (main.b3059a947fcd0e8a64b5.js:1)
at f (bootstrap:78)
at t (bootstrap:45)
at Array.r [as push] (bootstrap:32)
at main.b3059a947fcd0e8a64b5.js:1
Update 2 : With ng serve --prod sourceMap=true command this extra warning is comming :-
Is the warning has something to do with my error. Also i have checked for subscription in my code their doesn't seems any error.
I found the answer to this problem in Luciano comment.
Angular6 - Prod build fails to access
Basically it was Rxjs package problem in package.json.
May be this may help someone. Thankyou.

build error came after update node modules

Error on fetch for node_modules/angular2-notifications/src/simple-notifications.module.js at file:///D:/GIP/IMAGE PILOT/gipfe/node_modules/angular2-notifications/src/simple-notifications.module.js
Loading build/tmp/aot/src/app/app.module.ngfactory.js
Loading build\boot-aot.js
Error: ENOENT: no such file or directory, open 'D:\GIP\IMAGE PILOT\gipfe\node_modules\angular2-notifications\src\simple-notifications.module.js'
[10:13:51] 'build.aot' errored after 52 s
[10:13:51] Error in plugin 'run-sequence(bundle-aot)'
Message:
Error on fetch for node_modules/angular2-notifications/src/simple-notifications.module.js at file:///D:/GIP/IMAGE PILOT/gipfe/node_modules/angular2-notifications/src/simple-notifications.module.js
Loading build/tmp/aot/src/app/app.module.ngfactory.js
Loading build\boot-aot.js
ENOENT: no such file or directory, open 'D:\GIP\IMAGE PILOT\gipfe\node_modules\angular2-notifications\src\simple-notifications.module.js'
Details:
originalErr: Error: ENOENT: no such file or directory, open 'D:\GIP\IMAGE PILOT\gipfe\node_modules\angular2-notifications\src\simple-notifications.module.js'
Stack:
Error on fetch for node_modules/angular2-notifications/src/simple-notifications.module.js at file:///D:/GIP/IMAGE PILOT/gipfe/node_modules/angular2-notifications/src/simple-notifications.module.js
Loading build/tmp/aot/src/app/app.module.ngfactory.js
Loading build\boot-aot.js
Error: ENOENT: no such file or directory, open 'D:\GIP\IMAGE PILOT\gipfe\node_modules\angular2-notifications\src\simple-notifications.module.js'
import { SimpleNotificationsModule } from 'angular2-notifications';
imports: [
SharedModule,
routing,
ToastModule.forRoot(),
SimpleNotificationsModule.forRoot(),
this build error came when i take build npm run build.aot command. i put npm install command in my project then i try to take build error was came.
pls help me to resolve this
thank you.
Before i installed typescript version
"typescript": "^2.3.3" // package.json
then i changed the typescript version
"typescript": "2.3.3" //without cap symbol
Now,error was not came and i took build successfully

Ionic build android on Linux

When I run ionic build android, I get this error:
shell.js: internal error
Error: ENOENT: no such file or directory, open '/home/darko/Downloads/todo/false/shelljs_2da7bb00de48ebd25547'
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.writeFileSync (fs.js:1224:33)
at execSync (/usr/local/lib/node_modules/ionic/node_modules/shelljs/src/exec.js:56:6)
at Object._exec (/usr/local/lib/node_modules/ionic/node_modules/shelljs/src/exec.js:179:12)
at Object.exec (/usr/local/lib/node_modules/ionic/node_modules/shelljs/src/common.js:168:23)
at Object.getLinuxEnvironmentInfo (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:187:24)
at Object.getOsEnvironment (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:204:20)
at Object.t (/usr/local/lib/node_modules/ionic/lib/utils/stats.js:147:15)
at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:135:16)
Please take note that path from the error:
ENOENT: no such file or directory, open '/home/darko/Downloads/todo/false/shelljs_2da7bb00de48ebd25547'
contains directory false, which I don't have..I think that should be node_modules instead of false.
Also, I had several problems before this error which I solved somehow, but I think I will get more errors as I go forward. Am I doing something fundamentaly wrong?

TypeError in cordova_plugins.js

Whenever I create a project using the PhoneGap Desktop Application, I get this error in the console of index.html file for cordova_plugins.js:
**Failed to load resource: the server responded with a status of 500 (Internal Server Error)**
And when I open the cordova_plugins.js file in browser, it shows this -
****TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) at Object.join (path.js:506:7) at Object.handle (D:\PhoneGap Desktop\resources\app.asar\node_modules\connect-phonegap\lib\middleware\cordova\cordova_plugins.js:18:33) at next (D:\PhoneGap Desktop\resources\app.asar\node_modules\connect\lib\proto.js:193:15) at Object.handle (D:\PhoneGap Desktop\resources\app.asar\node_modules\connect-phonegap\lib\middleware\cordova\cordova.js:33:13) at next (D:\PhoneGap Desktop\resources\app.asar\node_modules\connect\lib\proto.js:193:15) at resume (D:\PhoneGap Desktop\resources\app.asar\node_modules\connect\lib\middleware\static.js:65:7) at SendStream.error (D:\PhoneGap Desktop\resources\app.asar\node_modules\connect\lib\middleware\static.js:80:37) at emitOne (events.js:90:13) at SendStream.emit (events.js:182:7)****
The project is in D:\Applications\samplApp.
PhoneGap Desktop is install in D:\PhoneGap Desktop.
Please help me in fixing this. Maybe because of this, every external plugin I try to load, window.plugins.plugin_name in js results in error that window.plugins is undefined. If you need any other information, please ask.
You need to install the plugin to your app's folder.
cordova plugins add plugin_name

Getting error when trying to start ember server

I am trying to start my server from within my app using the command;
ember serve
However I get a no such file or directory error as below;
version: 1.13.8
Livereload server on http://localhost:49156
Serving on http://localhost:4200/
ENOENT, no such file or directory 'C:\MyApp\mycode\tmp\concat_with_maps-input_base_path-tfPGUnEW.tmp\0\bower_components\ember-template-compiler\index.js'
Error: ENOENT, no such file or directory 'C:\MyApp\mycode\tmp\concat_with_maps-input_base_path-tfPGUnEW.tmp\0\bower_components\ember-template-compiler\index.js'
at Error (native)
at Object.fs.statSync (fs.js:797:18)
at ConcatWithMaps.keyForFile (C:\MyApp\mycode\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\index.js:91:55)
at Array.map (native)
at ConcatWithMaps.CachingWriter._conditionalBuild (C:\MyApp\mycode\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\index.js:107:61)
at C:\MyApp\mycode\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\read_compat.js:61:34
at lib$rsvp$$internal$$tryCatch (C:\MyApp\mycode\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:493:16)
at lib$rsvp$$internal$$invokeCallback (C:\MyApp\mycode\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:505:17)
at lib$rsvp$$internal$$publish (C:\MyApp\mycode\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:476:11)
at lib$rsvp$asap$$flush (C:\MyApp\mycode\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1198:9)
Where should I look to fix the issue?

Categories