-
|
Hi @awdorrin ! I'm encountering some issues while attempting to update my project to use your package, and need some help. I've uninstalled angular-odata-es5, installed your package (@awdorrin/ngx-odata-client) from npm, and updated my imports accordingly. I also added an index.ts file in the @awdorrin/ngx-odata-client folder to simplify imports by grouping them together (for example: Although there are no compilation errors and the project builds successfully, I'm encountering an error in my browser upon launch: In the providers array of my AppModule, I haven't made any changes from what I used with the previous package (except for the imports path): The "?undefined?" refers to ODataServiceFactory. I've tried various solutions without success. I also attempted removing this code from the providers section and adding NgxODataClientModule to the imports section, but encountered a different error. I am on angular 15.2.10 and using v15.0.0 of your package. Tried with angular 16 and your 16.0.0 also, same "?undefined?" on ODataServiceFactory issue. Any assistance you could provide would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Here is what I do in my application: In app.module.ts, make sure you have the following: ODataConfigService is: service/odata-config-service.ts: Each of my components where I replaced angular-odata-es5 with my version: |
Beta Was this translation helpful? Give feedback.
-
|
Still haven't succeeded in making it work. I encountered a new error when changing my ODataConfigurationFactory to your ODataConfigService in the useClass property. The error is: I have created a very basic Angular (v15.2.10) project that reproduces the error I encountered with your provided code. You can find it here: https://github.com/AnaisR7/stackblitz15/tree/main/src/app. In AppModule you can switch the provider with my ODataConfigurationFactory that generate the initial error ?undefined? I had on ODataServiceFactory provider. |
Beta Was this translation helpful? Give feedback.
I have published @awdorrin/ngx-odata-client@15.0.2 which is packaged properly.
If you give me permission to your stackblitz15, I will push my updates that resolve the build issue.
I'll work on updates for Angular 16 and 17 and get them published some time today.