bludnic / opentrader

🤖 Powerful open-source crypto trading bot. Give it a ⭐ to support the project!
Apache License 2.0
218 stars 24 forks source link

Failed to used Pino logger in browser #28

Closed bludnic closed 5 months ago

bludnic commented 6 months ago

Job failed after importing @opentrader/exchanges -> logger from frontend app. https://github.com/bludnic/opentrader/actions/runs/9046641961/job/24857683790

Browser logging docs: https://github.com/pinojs/pino/blob/main/docs/browser.md

bludnic commented 6 months ago

Removed the logger temporarily

bludnic commented 5 months ago

After building and running the backend, it throws an error "Cannot find module 'lib/worker.js'" https://github.com/pinojs/pino/issues/1157

bludnic commented 5 months ago

Docs referring previous issue https://github.com/pinojs/pino/blob/main/docs/bundling.md

bludnic commented 5 months ago

Solved by adding pino and pino-pretty as dependencies in backend app https://github.com/bludnic/opentrader-pro/commit/4969b7f9bd044816556c59ec3711cc8c26015a5e