-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!B-gridEverything grid and server relatedEverything grid and server relatedC-nodejsJavaScript BindingsJavaScript BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.OS-windows
Description
Description
In my ESM Typescript project when I try to import FileDetector from 'selenium-webdriver/remote' I receive Cannot find module 'selenium-webdriver/remote' or its corresponding type declarations.ts(2307)
If I try to use dynamic import I get runtime error. ERR_UNSUPPORTED_DIR_IMPORT as you are not exporting subpackages.
I'm using tsconfig:
{
"module": "Node16",
"moduleResolution": "node16",
}
Reproducible Code
import { FileDetector } from 'selenium-webdriver/remote'Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!B-gridEverything grid and server relatedEverything grid and server relatedC-nodejsJavaScript BindingsJavaScript BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.OS-windows