Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

npm start exception #13

Closed
achekulaev opened this issue Apr 6, 2016 · 10 comments
Closed

npm start exception #13

achekulaev opened this issue Apr 6, 2016 · 10 comments

Comments

@achekulaev
Copy link

All other steps finished fine.

$ npm start
> @angular2/electron@1.0.0 start /Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master
> npm run demo
> @angular2/electron@1.0.0 demo /Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master
> npm run build && npm run build_demo && electron ./demo
> @angular2/electron@1.0.0 build /Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master
> npm run clean && tsc
> @angular2/electron@1.0.0 clean /Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master
> rimraf dist
> @angular2/electron@1.0.0 build_demo /Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master
> tsc typings/browser.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata
App threw an error when running TypeError: Cannot read property 'prototype' of undefined
    at patchXHR (/Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master/node_modules/zone.js/dist/zone.js:112:63)
    at Object.<anonymous> (/Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master/node_modules/zone.js/dist/zone.js:80:2)
    at Object.Zone.Zone.zoneSpec._properties (/Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master/node_modules/zone.js/dist/zone.js:181:31)
    at __webpack_require__ (/Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master/node_modules/zone.js/dist/zone.js:20:30)
    at /Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master/node_modules/zone.js/dist/zone.js:40:18
    at Object.<anonymous> (/Users/alexei.chekulaev/Dropbox/Work/nw/angular-electron-master/node_modules/zone.js/dist/zone.js:43:10)
    at Module._compile (module.js:416:34)
    at Object.Module._extensions..js (module.js:425:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
@trong
Copy link

trong commented Apr 8, 2016

the same problem

@jnhghy
Copy link

jnhghy commented Apr 11, 2016

+1

@Quramy
Copy link

Quramy commented Apr 13, 2016

I think the code import 'zone.js/dist/zone'; in demo/main.ts causes this error.
zone.js/dist/zone is a module for renderer process.
I rewrite it to `import 'zone.js/dist/zone-node';' and this error is fixed.
I get some electron's BrowserWindow but it has been displaying 'Loading...'. There is no "Hello from Angular2 Electron" message.
What's wrong?

@DanielGarciaMandillo
Copy link

You can modify the script "setup-demo" for this: zone.js@0.6.6 (delete ^ for download v0.6.6 instead v0.6.10)

Last version zone.js is 0.6.10 and the project maybe has not been update for that version yet.

@Quramy
Copy link

Quramy commented Apr 13, 2016

@DanielGarciaMandillo thx!

@soichih
Copy link

soichih commented May 11, 2016

+1

@MartinMajewski
Copy link

How can you download zone.js@0.6.6 when the latest version is 0.3.4?
Are we speaking of different modules?

@ivodvb
Copy link

ivodvb commented Dec 19, 2016

@MartinMajewski https://www.npmjs.com/package/zone.js
0.7.2 is the latest of 58 releases

@MartinMajewski
Copy link

Yeah... I was confused because I accidentally downloaded zone and not zone.js as package... -.-

nayunhwan added a commit to nayunhwan/angular-electron that referenced this issue Mar 23, 2017
@achekulaev
Copy link
Author

Nothing seems to happen here. Closing the issue as I don't use the package anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants