You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Error: Failed to initilialise launcher service unknown: Error: Couldn't initialise "@gmangiapelo/wdio-azure-devops-service".
C:\dev\e2e\node_modules\@gmangiapelo\wdio-azure-devops-service\dist\esm\index.js:1
import AzureDevopsService from './azure-devops-service';
One way I was able to resolve this was:
Change the type of both of your modules to "module" in package.json
Update all file imports to use a full .js path reference as Node's module system is not as forgiving as Babel or TypeScript's.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: