Giter Club home page Giter Club logo

Comments (12)

AdrienTorris avatar AdrienTorris commented on April 28, 2024 6

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.

stableShip avatar stableShip commented on April 28, 2024 2

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

demo

from angular-electron.

danielnieto avatar danielnieto commented on April 28, 2024 1

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.

stableShip avatar stableShip commented on April 28, 2024

same problem +1

from angular-electron.

PerfectPixel avatar PerfectPixel commented on April 28, 2024

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.

Thomas-23 avatar Thomas-23 commented on April 28, 2024

Thanks in front of two of the answer, i'll try

from angular-electron.

xenthil avatar xenthil commented on April 28, 2024

I am running to the same issue :(

from angular-electron.

jbgraug avatar jbgraug commented on April 28, 2024

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.

mehranagh20 avatar mehranagh20 commented on April 28, 2024

same issue here.
none of the solutions helped.
have someone found a real answer for this ?

from angular-electron.

okonon avatar okonon commented on April 28, 2024

this is still an issue for me

from angular-electron.

smshahinulislam avatar smshahinulislam commented on April 28, 2024

npm install typings --save --global solved the issue for me.

from angular-electron.

varogonz95 avatar varogonz95 commented on April 28, 2024
  1. Did all of the above, none worked.
  2. index.d.ts still empty.
  3. npm start hopelessly fails.

from angular-electron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.