angular / angular-electron

Angular2 + Electron
605 stars 115 forks source link

src/platform/electron.ts(1,24): error TS2307: Cannot find module 'angular2/core'. #21

Open kdrkrst opened 8 years ago

kdrkrst commented 8 years ago

npm start failed with the logs below:

C:\Users\kursa\Desktop\angular-electron>npm start

@angular2/electron@1.0.0 start C:\Users\kursa\Desktop\angular-electron npm run demo

@angular2/electron@1.0.0 demo C:\Users\kursa\Desktop\angular-electron npm run build && npm run build_demo && electron ./demo

@angular2/electron@1.0.0 build C:\Users\kursa\Desktop\angular-electron npm run clean && tsc

@angular2/electron@1.0.0 clean C:\Users\kursa\Desktop\angular-electron rimraf dist

src/platform/electron.ts(1,24): error TS2307: Cannot find module 'angular2/core'. src/platform/electron_app.ts(1,27): error TS2307: Cannot find module 'electron'. src/platform/electron_app.ts(4,43): error TS2307: Cannot find module 'angular2/src/facade/lang'. src/platform/electron_app.ts(5,32): error TS2307: Cannot find module 'angular2/src/platform/server/parse5_adapter'. src/platform/electron_app.ts(6,73): error TS2307: Cannot find module 'angular2/core'. src/platform/electron_app.ts(7,26): error TS2307: Cannot find module 'angular2/src/web_workers/shared/message_bus'. src/platform/electron_app.ts(8,34): error TS2307: Cannot find module 'angular2/compiler'. src/platform/electron_app.ts(17,20): error TS2503: Cannot find namespace 'Electron'. src/platform/electron_app.ts(28,14): error TS2304: Cannot find name 'Promise'. src/platform/electron_app.ts(35,14): error TS2304: Cannot find name 'Promise'. src/platform/electron_app.ts(45,36): error TS2304: Cannot find name 'process'. src/platform/electron_app_common.ts(1,19): error TS2307: Cannot find module 'angular2/src/compiler/xhr'. src/platform/electron_app_common.ts(2,32): error TS2307: Cannot find module 'angular2/src/web_workers/worker/xhr_impl'. src/platform/electron_app_common.ts(3,37): error TS2307: Cannot find module 'angular2/src/web_workers/worker/renderer'. src/platform/electron_app_common.ts(4,50): error TS2307: Cannot find module 'angular2/src/facade/lang'. src/platform/electron_app_common.ts(5,28): error TS2307: Cannot find module 'angular2/src/core/render/api'. src/platform/electron_app_common.ts(12,8): error TS2307: Cannot find module 'angular2/core'. src/platform/electron_app_common.ts(13,63): error TS2307: Cannot find module 'angular2/common'. src/platform/electron_app_common.ts(17,8): error TS2307: Cannot find module 'angular2/src/web_workers/shared/client_message_broker'. src/platform/electron_app_common.ts(21,8): error TS2307: Cannot find module 'angular2/src/web_workers/shared/service_message_broker'. src/platform/electron_app_common.ts(22,26): error TS2307: Cannot find module 'angular2/src/web_workers/shared/serializer'. src/platform/electron_app_common.ts(23,29): error TS2307: Cannot find module 'angular2/src/web_workers/shared/api'. src/platform/electron_app_common.ts(24,24): error TS2307: Cannot find module 'angular2/src/core/di'. src/platform/electron_app_common.ts(25,27): error TS2307: Cannot find module 'angular2/src/web_workers/shared/render_store'. src/platform/electron_message_bus.ts(1,27): error TS2307: Cannot find module 'electron'. src/platform/electron_message_bus.ts(6,8): error TS2307: Cannot find module 'angular2/src/web_workers/shared/message_bus'. src/platform/electron_message_bus.ts(7,48): error TS2307: Cannot find module 'angular2/core'. src/platform/electron_message_bus.ts(42,22): error TS2304: Cannot find name 'Map'. src/platform/electron_message_bus.ts(43,11): error TS2304: Cannot find name 'Map'. src/platform/electron_message_bus.ts(94,22): error TS2304: Cannot find name 'Map'. src/platform/electron_message_bus.ts(95,11): error TS2304: Cannot find name 'Map'. src/platform/electron_renderer.ts(1,27): error TS2307: Cannot find module 'electron'. src/platform/electron_renderer.ts(3,26): error TS2307: Cannot find module 'angular2/src/web_workers/shared/message_bus'. src/platform/electron_renderer.ts(4,50): error TS2307: Cannot find module 'angular2/core'. src/platform/electron_renderer.ts(5,46): error TS2307: Cannot find module 'angular2/src/core/di'. src/platform/electron_renderer.ts(6,36): error TS2307: Cannot find module 'angular2/src/web_workers/ui/renderer'. src/platform/electron_renderer.ts(7,35): error TS2307: Cannot find module 'angular2/src/web_workers/ui/xhr_impl'. src/platform/electron_renderer.ts(15,29): error TS2307: Cannot find module 'angular2/src/facade/exceptions'. src/platform/electron_renderer.ts(16,26): error TS2307: Cannot find module 'angular2/src/facade/lang'. src/platform/electron_renderer_common.ts(1,35): error TS2307: Cannot find module 'angular2/src/facade/lang'. src/platform/electron_renderer_common.ts(2,26): error TS2307: Cannot find module 'angular2/src/web_workers/shared/message_bus'. src/platform/electron_renderer_common.ts(17,8): error TS2307: Cannot find module 'angular2/core'. src/platform/electron_renderer_common.ts(18,51): error TS2307: Cannot find module 'angular2/platform/common_dom'. src/platform/electron_renderer_common.ts(19,56): error TS2307: Cannot find module 'angular2/src/core/di'. src/platform/electron_renderer_common.ts(21,19): error TS2307: Cannot find module 'angular2/src/platform/dom/dom_adapter'. src/platform/electron_renderer_common.ts(22,31): error TS2307: Cannot find module 'angular2/src/platform/dom/events/dom_events'. src/platform/electron_renderer_common.ts(23,31): error TS2307: Cannot find module 'angular2/src/platform/dom/events/key_events'. src/platform/electron_renderer_common.ts(24,36): error TS2307: Cannot find module 'angular2/src/platform/dom/events/hammer_gestures'. src/platform/electron_renderer_common.ts(25,24): error TS2307: Cannot find module 'angular2/src/platform/dom/dom_tokens'. src/platform/electron_renderer_common.ts(26,49): error TS2307: Cannot find module 'angular2/src/platform/dom/dom_renderer'. src/platform/electron_renderer_common.ts(27,35): error TS2307: Cannot find module 'angular2/src/platform/dom/shared_styles_host'. src/platform/electron_renderer_common.ts(28,32): error TS2307: Cannot find module 'angular2/src/platform/dom/shared_styles_host'. src/platform/electron_renderer_common.ts(29,30): error TS2307: Cannot find module 'angular2/src/animate/browser_details'. src/platform/electron_renderer_common.ts(30,32): error TS2307: Cannot find module 'angular2/src/animate/animation_builder'. src/platform/electron_renderer_common.ts(31,19): error TS2307: Cannot find module 'angular2/compiler'. src/platform/electron_renderer_common.ts(32,23): error TS2307: Cannot find module 'angular2/src/platform/browser/xhr_impl'. src/platform/electron_renderer_common.ts(33,27): error TS2307: Cannot find module 'angular2/src/core/testability/testability'. src/platform/electron_renderer_common.ts(34,37): error TS2307: Cannot find module 'angular2/src/platform/browser/testability'. src/platform/electron_renderer_common.ts(35,33): error TS2307: Cannot find module 'angular2/src/platform/browser/browser_adapter'. src/platform/electron_renderer_common.ts(36,23): error TS2307: Cannot find module 'angular2/src/core/profile/wtf_init'. src/platform/electron_renderer_common.ts(37,36): error TS2307: Cannot find module 'angular2/src/web_workers/ui/renderer'. src/platform/electron_renderer_common.ts(38,35): error TS2307: Cannot find module 'angular2/src/web_workers/ui/xhr_impl'. src/platform/electron_renderer_common.ts(39,39): error TS2307: Cannot find module 'angular2/src/router/location/browser_platform_location'. src/platform/electron_renderer_common.ts(43,8): error TS2307: Cannot find module 'angular2/src/web_workers/shared/service_message_broker'. src/platform/electron_renderer_common.ts(47,8): error TS2307: Cannot find module 'angular2/src/web_workers/shared/client_message_broker'. src/platform/electron_renderer_common.ts(48,26): error TS2307: Cannot find module 'angular2/src/web_workers/shared/serializer'. src/platform/electron_renderer_common.ts(49,29): error TS2307: Cannot find module 'angular2/src/web_workers/shared/api'. src/platform/electron_renderer_common.ts(50,27): error TS2307: Cannot find module 'angular2/src/web_workers/shared/render_store'. src/platform/electron_renderer_common.ts(52,27): error TS2307: Cannot find module 'electron'. src/main.ts(2,15): error TS2307: Cannot find module 'angular2/common'. src/main.ts(3,15): error TS2307: Cannot find module 'angular2/core'. src/main.ts(4,15): error TS2307: Cannot find module 'angular2/platform/worker_app'. src/main.ts(5,27): error TS2307: Cannot find module 'angular2/compiler'. src/main.ts(6,15): error TS2307: Cannot find module 'angular2/instrumentation'. src/renderer.ts(2,15): error TS2307: Cannot find module 'angular2/core'.

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! @angular2/electron@1.0.0 build: npm run clean && tsc npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @angular2/electron@1.0.0 build script 'npm run clean && tsc'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the @angular2/electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run clean && tsc npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs @angular2/electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls @angular2/electron npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\kursa\Desktop\angular-electron\npm-debug.log

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "demo" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! @angular2/electron@1.0.0 demo: npm run build && npm run build_demo && electron ./demo npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @angular2/electron@1.0.0 demo script 'npm run build && npm run build_demo && electron ./demo'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the @angular2/electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run build && npm run build_demo && electron ./demo npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs @angular2/electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls @angular2/electron npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\kursa\Desktop\angular-electron\npm-debug.log

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! @angular2/electron@1.0.0 start: npm run demo npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @angular2/electron@1.0.0 start script 'npm run demo'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the @angular2/electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run demo npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs @angular2/electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls @angular2/electron npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\kursa\Desktop\angular-electron\npm-debug.log

C:\Users\kursa\Desktop\angular-electron>

magengbin commented 7 years ago

+1