BUG: [Odoo] Running the Middleware as described by the new Doc

Hello @Diogo Duarte , First I want to thank you for the Odoo integration. I was able to run it via the docker example but it is just an example with no clear how to do it with newer versions and latest docs. So after reading the full documentation and watched the available videos and looked at all available code, I was not able to find the correct manner to configure and make Odoo work with the storefront. * Is Odoo still supported by the same latest starter project and the documentation guide ? Is there any constraints to add to the Readme ? * What is(are) the official repo(s) ? Are they the one hosted on the erpgap org. or the vue-storefront one ? Here is the bug while making a request to the middleware:
INFO] 12:25:12 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.2, typescript ver. 5.5.4)
{"timestamp":"2024-12-23T09:25:13.154Z","severity":"INFO","message":"Middleware starting....","alokai":{"context":"middleware"}}
{"timestamp":"2024-12-23T09:25:13.281Z","severity":"INFO","message":"Middleware created!","alokai":{"context":"middleware"}}
API server listening on port 8181
YOU MUST INSTALL AND CONFIGURE NUXT WINSTON MODULE FROM https://github.com/aaronransley/nuxt-winston-log
Error: YOU MUST INSTALL AND CONFIGURE NUXT WINSTON MODULE FROM https://github.com/aaronransley/nuxt-winston-log
at Object.onCreate (.../nuxt-starter/node_modules/@erpgap/odoo-api/src/setup/clientSetup.ts:14:11)
at Object.createApiClient (.../nuxt-starter/node_modules/@erpgap/odoo-api/node_modules/@vue-storefront/core/src/factories/apiClientFactory/index.ts:26:61)
--- SKIPPED ---
[ERROR] 12:25:17 Error: YOU MUST INSTALL AND CONFIGURE NUXT WINSTON MODULE FROM https://github.com/aaronransley/nuxt-winston-log
INFO] 12:25:12 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.2, typescript ver. 5.5.4)
{"timestamp":"2024-12-23T09:25:13.154Z","severity":"INFO","message":"Middleware starting....","alokai":{"context":"middleware"}}
{"timestamp":"2024-12-23T09:25:13.281Z","severity":"INFO","message":"Middleware created!","alokai":{"context":"middleware"}}
API server listening on port 8181
YOU MUST INSTALL AND CONFIGURE NUXT WINSTON MODULE FROM https://github.com/aaronransley/nuxt-winston-log
Error: YOU MUST INSTALL AND CONFIGURE NUXT WINSTON MODULE FROM https://github.com/aaronransley/nuxt-winston-log
at Object.onCreate (.../nuxt-starter/node_modules/@erpgap/odoo-api/src/setup/clientSetup.ts:14:11)
at Object.createApiClient (.../nuxt-starter/node_modules/@erpgap/odoo-api/node_modules/@vue-storefront/core/src/factories/apiClientFactory/index.ts:26:61)
--- SKIPPED ---
[ERROR] 12:25:17 Error: YOU MUST INSTALL AND CONFIGURE NUXT WINSTON MODULE FROM https://github.com/aaronransley/nuxt-winston-log
Thank you again and hope we understand the project and contribute to it.
2 Replies
Diogo Duarte
Diogo Duarte5d ago
hi @Slim B. we are transitioning the repos from ODOOGAP to ERPGAP still need to update docs: - Odoo Modules: https://github.com/erpgap/alokai-odoo - Docker Compose: https://github.com/erpgap/alokai-docker Odoo v18.0 is ready available. About that bug, first make sure you are using the correct node version. Are you getting that using Docker compose?
Slim B.
Slim B.OP5d ago
Awesome ! It seems that it is because I was using @erpgap/odoo-api instead of erpgap/odoo-sdk

Did you find this page helpful?