Code Monkey home page Code Monkey logo

Comments (10)

diegomvh avatar diegomvh commented on May 28, 2024

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.

denissulea avatar denissulea commented on May 28, 2024

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.

diegomvh avatar diegomvh commented on May 28, 2024

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.

denissulea avatar denissulea commented on May 28, 2024

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.

diegomvh avatar diegomvh commented on May 28, 2024

Angular 7 support
Challenge accepted!
TypeScript version?

from angular-odata.

diegomvh avatar diegomvh commented on May 28, 2024

Please @denissulea could you paste your package.json file here?
Thanks

from angular-odata.

denissulea avatar denissulea commented on May 28, 2024

Angular 7 support
Challenge accepted!
TypeScript version?

v 3.2.4

from angular-odata.

denissulea avatar denissulea commented on May 28, 2024

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.

diegomvh avatar diegomvh commented on May 28, 2024

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.

denissulea avatar denissulea commented on May 28, 2024

Thanks..it works great now

from angular-odata.

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.