Comments (21)
I installed latest typescript version inside project. Not globally.
npm install typescript@next --save
And it's working now
from ngx-ui.
npm install [email protected] has saved my day
from ngx-ui.
You need typescript 2.4
from ngx-ui.
According to this comment Angular isn't compatible with TypeScript 2.4 or 2.5 yet.
from ngx-ui.
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.
Hmm, I guess caching problem. Got fixed after I reloaded and restarted everything.
from ngx-ui.
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.
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.
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.
npm install [email protected] has saved my day
worked for me
from ngx-ui.
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.
no.. but +1
from ngx-ui.
+1
from ngx-ui.
@amcdnl I got
- typescript 2.42.
- ng-cli 1.3.0-rc.5
Still the same error.
from ngx-ui.
Also the release candidate can be used instead of the nightly build. npm install typescript@rc --save
from ngx-ui.
Please reopen this issue because as @cwalcott mentioned we cannot update TS to 2.4 version now
from ngx-ui.
@ogix What does it mean?
Which TS. global or for this specific project?
from ngx-ui.
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.
Any solution on this other than updating to 2.4?
from ngx-ui.
Same problem
from ngx-ui.
Thanks, wilkinsleung0712. you save me time.
from ngx-ui.
Related Issues (20)
- ng 16 error when using ssr
- JsonEditor Validation Broken in 47.1.0 HOT 2
- Error on fresh angular install HOT 2
- Support template defined groups in `ngx-select`
- When using an ngx-select-option as a custom button it gets filtered out
- A11y: Evaluate and implement a11y features for `ngx-tabs` HOT 1
- A11y: Evaluate and implement a11y features for `ngx-sections` HOT 1
- Improve focus behavior of dialogs.
- A11y: Evaluate and implement a11y features for `ngx-dropzone`/`ngx-file-button`
- Allow intercepting `closeOnOutsideClick`
- Respect `closeOnEscape` passed to `DrawerService#create`
- Escape button doesn't correctly register in drawers (incorrect focus trap)
- Pull request #754 broke compatibility with desktop Safari < 14.1 and mobile Safari < 14.5
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Angular 14 - Type '"text"' is not assignable to type 'InputTypes'
- HTML Notification position
- ngx-ui - angular 14.xx - stackblitz => error HOT 2
- angular 14.2 (and typescript 4.8.x) - schema-validator.service.ts (and ngx-charts)
- ngx-select doesn't react to zero option templates 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 ngx-ui.