Git Product home page Git Product logo

Comments (21)

AlexanderKozhevin avatar AlexanderKozhevin commented on August 27, 2024 27

I installed latest typescript version inside project. Not globally.

npm install typescript@next --save

And it's working now

from ngx-ui.

wilkinsleung0712 avatar wilkinsleung0712 commented on August 27, 2024 22

npm install [email protected] has saved my day

from ngx-ui.

amcdnl avatar amcdnl commented on August 27, 2024 21

You need typescript 2.4

from ngx-ui.

cwalcott avatar cwalcott commented on August 27, 2024 6

According to this comment Angular isn't compatible with TypeScript 2.4 or 2.5 yet.

from ngx-ui.

bischofb avatar bischofb commented on August 27, 2024 5

I was stoked to try out this grid because ag-grid is crazy bloated and this looks it has just enough features without the bloat. But I get this error as well with a clean Linux build and fresh install of Angular CLI. Why would an angular grid be built for a version of TS that isn't compatible with Angular? I'll look for another lightweight grid and maybe revisit this one again in the future. :-(

from ngx-ui.

AlexanderKozhevin avatar AlexanderKozhevin commented on August 27, 2024 3

Hmm, I guess caching problem. Got fixed after I reloaded and restarted everything.

from ngx-ui.

t-palmer avatar t-palmer commented on August 27, 2024 2

I am looking at the Angular Changelog here:
https://github.com/angular/angular/blob/master/CHANGELOG.md

Angular 4.3.4 was made available August 10, 2017 and it supports Typescript 2.4.

You probably want to upgrade now to Typescript 2.4. According to the Changelog, Angular 5 requires it.

from ngx-ui.

AlexanderKozhevin avatar AlexanderKozhevin commented on August 27, 2024 1

Hah. Nope. That's weird.
So when I comment it out, compile, and then uncomment again. It works.
But it keeps giving me these errors.

from ngx-ui.

ridj87 avatar ridj87 commented on August 27, 2024 1

Im having this issue and tried to update ts to 2.4.2.
here is my setup.
angular/cdk: 5.0.0-rc0
angular/cli: 1.5.0
angular/flex-layout: 2.0.0-beta.11-b01c2d7
angular/material: 5.0.0-rc0
angular-devkit/build-optimizer: 0.0.33
angular-devkit/core: 0.0.20
angular-devkit/schematics: 0.0.35
ngtools/json-schema: 1.1.0
ngtools/webpack: 1.8.0
schematics/angular: 0.1.3
typescript: 2.4.2
webpack: 3.8.1

Still getting the errors

from ngx-ui.

gurwinder-macrew avatar gurwinder-macrew commented on August 27, 2024 1

npm install [email protected] has saved my day

worked for me

from ngx-ui.

BenRacicot avatar BenRacicot commented on August 27, 2024

I can second this issue but I believe it's a TS specific error. In ambient enum declarations member initializer must be constant expression.

Trying to understand what I'm doing wrong based on this: https://github.com/Microsoft/TypeScript/blob/master/tests/baselines/reference/ambientErrors.errors.txt But has anyone got to the bottom of this error?

from ngx-ui.

mkoczorowski avatar mkoczorowski commented on August 27, 2024

no.. but +1

from ngx-ui.

penniath avatar penniath commented on August 27, 2024

+1

from ngx-ui.

AlexanderKozhevin avatar AlexanderKozhevin commented on August 27, 2024

@amcdnl I got

  • typescript 2.42.
  • ng-cli 1.3.0-rc.5

Still the same error.

from ngx-ui.

adrian-moisa avatar adrian-moisa commented on August 27, 2024

Also the release candidate can be used instead of the nightly build. npm install typescript@rc --save

from ngx-ui.

ogix avatar ogix commented on August 27, 2024

Please reopen this issue because as @cwalcott mentioned we cannot update TS to 2.4 version now

from ngx-ui.

AlexanderKozhevin avatar AlexanderKozhevin commented on August 27, 2024

@ogix What does it mean?
Which TS. global or for this specific project?

from ngx-ui.

ogix avatar ogix commented on August 27, 2024

Local, since this version will be used when bundling using Angular CLI. I get a warning that 2.4 ant later TS is not supported yet and it can cause problems.

from ngx-ui.

bhushangahire avatar bhushangahire commented on August 27, 2024

Any solution on this other than updating to 2.4?

from ngx-ui.

JerryBels avatar JerryBels commented on August 27, 2024

Same problem

from ngx-ui.

hmendezm avatar hmendezm commented on August 27, 2024

Thanks, wilkinsleung0712. you save me time.

from ngx-ui.

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.