axiomhq / axiom-js

Official language bindings and library extensions for Axiom
https://axiom.co
MIT License
89 stars 14 forks source link

Can't import WinstonTransport #80

Closed pyrexfm closed 11 months ago

pyrexfm commented 11 months ago

Problem

Tried to import WinstonTransport and it didn't work (using "@axiomhq/winston": "^0.1.3").

Workaround

I went to the index.ts file inside node modules and found this error: image

Module '"c:/Users/franc/ReactProjects/wealth-tracker/node_modules/winston-transport/index"' can only be default-imported using the 'esModuleInterop' flagts(1259)

I went to the package tsconfig and added esModuleInterop:true and it still doesn't run.

SollyzDev commented 11 months ago

Hi @pyrexfm we have a released a new version that fixes this build issue. It's still rc but maybe you could give it a try.

pyrexfm commented 11 months ago

It's fixed, thank you