Closed matt-way closed 2 years ago
When trying to perform a dynamic import inside code imported using this lib, I get this error on windows:
"Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"
However if I put the required file:/// prefix it still fails because path.resolve() called inside resolveModuleSpecifier strips this away.
file:///
path.resolve()
resolveModuleSpecifier
This should be fixed in new patch version 3.2.1.
3.2.1
When trying to perform a dynamic import inside code imported using this lib, I get this error on windows:
"Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"
However if I put the required
file:///
prefix it still fails becausepath.resolve()
called insideresolveModuleSpecifier
strips this away.