diegomvh / angular-odata

Client side OData typescript library for Angular
https://www.npmjs.com/package/angular-odata
MIT License
50 stars 14 forks source link

'"angular-odata"' has no exported member named 'ODataFunctionOptions'. Did you mean 'ODataEntityOptions'? #61

Closed vigouredelaruse closed 2 years ago

vigouredelaruse commented 2 years ago

hello- the title says it all;

project config is mononucleorepo in a workspace with 2 libraries as per image

both libraries were generated with variants of code like this

ng new my-workspace --no-create-application
cd my-workspace
ng generate library my-lib

then odata modules were generated with code like this

docker run -it --rm -v ${PWD}:/local diegomvh/odataapigen `
  Name=HorselessHosting `
  Metadata=file:///local/HostingCollectionMetadata.xml `
  Output=/local

the output was pasted into the libraries, with peer and dev dependencies like this

  "peerDependencies": {
    "@angular/common": "~x.x.x",
    "angular-odata": "^x.x.x",
    "@angular/core": "~x.x.x"
  },
  "devDependencies": {
    "@angular/common": "~x.x.x",
    "angular-odata": "~x.x.x",
    "@angular/core": "~x.x.x"
  },
  "dependencies": {
    "tslib": "^2.3.0"
  }

however on ng build the service classes all throw some variant of

error TS2724: '"angular-odata"' has no exported member named 'ODataFunctionOptions'. Did you mean 'ODataEntityOptions'?
21   ODataFunctionOptions,

please advise