Comments (12)
Solution :
1) : replace the 'build_demo' value in package.json by this : "tsc typings/index.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata"
2) In the tsconfig.json file, replace typings/broswer.d.ts
by typings/index.d.ts
3) In the typings.json file, replace ambientDependencies by globalDependencies
4) Execute this command lines :
npm run setup
npm run setup-demo
npm start
It will work :)
from angular-electron.
get it.
now typings install
didnt create browser.d.ts , now create index.d.ts
instead of browser.d.ts
fix it by:
change package.json
build_demo
to tsc typings/index.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata
change tsconfig.json
files
typings/broswer.d.ts
to typings/index.d.ts
from angular-electron.
I have the same issue but my index.d.ts
file is completely empty! and therefor (I guess) it doesn't work at all
from angular-electron.
same problem +1
from angular-electron.
Did you run npm run setup
as well?
Usually this should install typings. There was a discussion about removing browser.d.ts in typings, but I did not follow along. However, I just tried running a fresh copy and it worked with running the following commands:
npm run setup
npm run setup-demo
npm start
from angular-electron.
Thanks in front of two of the answer, i'll try
from angular-electron.
I am running to the same issue :(
from angular-electron.
Renaming the attribute ambientDependencies to globalDependencies in the typings.json file, solved the issue for me. don't forget to follow @stableShip instructions too.
from angular-electron.
same issue here.
none of the solutions helped.
have someone found a real answer for this ?
from angular-electron.
this is still an issue for me
from angular-electron.
npm install typings --save --global
solved the issue for me.
from angular-electron.
- Did all of the above, none worked.
index.d.ts
still empty.npm start
hopelessly fails.
from angular-electron.
Related Issues (20)
- Router integration... HOT 2
- npm run typings install will not work without typings HOT 2
- npm start exception HOT 10
- Http service throws error 'XMLHttpRequest is not defined'
- A JavaScript error occurred in the main process HOT 1
- refactor(angular2): Update to Angular2 RC HOT 10
- Use case for angular-electron HOT 1
- Multiple Window Support
- src/platform/electron.ts(1,24): error TS2307: Cannot find module 'angular2/core'. HOT 1
- Project Roadmap / Status HOT 12
- Running the demo fails on Windows HOT 1
- No running due to error TS6053: File 'typings/browser.d.ts' not found. HOT 1
- Angular (4+) Electron Seed
- Npm run setup on windows fails HOT 1
- Electron and iframe
- Error during template compile of 'AppModule' HOT 1
- Is this project active? HOT 1
- Provide a generic zone-aware wrapper for electron IPC etc HOT 2
- Cannot Install, Run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-electron.