Open halovanic opened 1 year ago
I'm having the same issues but don't seem to be able to get your fixes working. Doesn't seem like there have been any updates in some time.
@halovanic can you please explain how you made it work in detail?
@gianlucamangiapelo This ESM error is still happening, can you provide a solution for this!! Thanks.
When I try to use
import AzureDevopsService from "@gmangiapelo/wdio-azure-devops-service"
in V8 with a plain JavaScript project (no TypeScript or Babel to modify node_modules), it fails on internal imports:One way I was able to resolve this was:
A simpler way seems to be to simply set your import reference in wdio-azure-devops-service's package.json to also point to the cjs version as with require. This seems to work correctly in an import scenario without having to alter anything further.