Comments (10)
Hi @denissulea,
This issue was reported on #3 and is fixed on version 0.8.0 of the library
regards
PD: i will check
from angular-odata.
oh okay..unfortunately i have to use 0.7.0 as the project is using angular 7..do you know if there's a workaround?
from angular-odata.
Have you tried the latest version of a library in angular 7? Tell me if you have errors ... I use the latest version of angular, which I update on each release.
the code does not have a strong dependence on the angular version, if necessary, changing the code for different versions should not be complicated
from angular-odata.
yes..below is the error..the project uses angular 7.3.9
ERROR in node_modules/angular-odata/lib/models/collection.d.ts(20,17): error TS2314: Generic type 'IteratorResult' requires 1 type argument(s).
node_modules/angular-odata/lib/models/schema.d.ts(47,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/options.d.ts(71,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(9,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(10,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(18,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(22,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(27,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(28,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(30,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(31,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(32,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(33,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(34,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(35,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(36,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(41,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(42,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(43,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(44,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(45,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/responses/annotations.d.ts(46,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/segments.d.ts(43,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/angular-odata/lib/resources/segments.d.ts(44,9): error TS1086: An accessor cannot be declared in an ambient context.
from angular-odata.
Angular 7 support
Challenge accepted!
TypeScript version?
from angular-odata.
Please @denissulea could you paste your package.json file here?
Thanks
from angular-odata.
Angular 7 support
Challenge accepted!
TypeScript version?
v 3.2.4
from angular-odata.
Please @denissulea could you paste your package.json file here?
Thanks
{
"name": "Processor",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build-lib": "ng build Processor-library",
"packagr": "ng-packagr -p projects/Processor-library/ng-package.json"
},
"private": true,
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/cdk": "~7.3.7",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/material": "~7.3.7",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"@aspnet/signalr": "^1.1.4",
"@ngneat/transloco": "^2.12.4",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular-odata": "^0.7.0",
"core-js": "^2.5.4",
"hammerjs": "^2.0.8",
"http-server": "^0.11.1",
"jquery": "^3.3.1",
"odata-query": "^5.7.0",
"odata-query-builder": "0.0.7",
"plotly.js": "^1.49.5",
"rxjs": "~6.3.3",
"scss-bundle": "^2.5.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.13.9",
"@angular-devkit/build-ng-packagr": "^0.13.9",
"@angular/cli": "^7.3.9",
"@angular/compiler-cli": "^7.2.15",
"@angular/language-service": "^7.2.15",
"@ngx-formly/schematics": "^5.4.1",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^8.9.5",
"@types/plotly.js": "^1.44.11",
"codelyzer": "~4.5.0",
"highlight-loader": "^0.7.3",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"ng-packagr": "^4.2.0",
"ng-swagger-gen": "^1.8.1",
"prettier": "^1.18.2",
"pretty-quick": "^1.11.0",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tsickle": "^0.35.0",
"tslib": "^1.9.0",
"tslint": "^5.20.0",
"typescript": "^3.2.4"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
}
from angular-odata.
Hi @denissulea,
I create a new branch to build a version of the library for angular 7.
It is already published in npm.
npm install [email protected]
I hope this helps.
Thanks for giving the library a try.
regards
from angular-odata.
Thanks..it works great now
from angular-odata.
Related Issues (20)
- How expensive is creating an oDataServiceFactory. Can it be stored in a singelton? HOT 4
- Updated - Clone? Filter? Select? HOT 6
- '"angular-odata"' has no exported member named 'ODataFunctionOptions'. Did you mean 'ODataEntityOptions'?
- Angular 14 Support? HOT 1
- publish angular 14 update :-)
- Would like library replace single quote in Odata query by default HOT 1
- how to /(S(juqvmnem2qpijynyewk4pld5))/People('russellwhyte')?$expand=Trips($top=2;$skip=1) HOT 2
- "this.options.helper.context is not a function" HOT 1
- how to access all properties in raw json reply HOT 4
- skiptoken of annotations returns wrong result when it include - (hyphen) HOT 1
- No easy way to provide config asynchronously HOT 2
- Custom entity update endpoint address HOT 1
- Broken .exec method since update to 0.121? HOT 2
- Inline annotations support for parsing metadata xml documents?
- Semicolons should be encoded as %3B ? HOT 2
- replacement of OdataEntityService.customCollectionAction in the latest version HOT 1
- How to perform deep filtering HOT 2
- could you please explain why the preferred http method is PUT but not PATCH HOT 1
- Introduce `provideODataClient()` for standalone Angular apps HOT 7
- `query.orderBy()` usage 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-odata.