Closed xpader closed 1 year ago
I found a document here:
Relative specifiers like './startup.js' or '../config.mjs'. They refer to a path relative to the location of the importing file. The file extension is always necessary for these.
Change urlPattern
to urlPattern.js
in main.ts is worked, but that's incredible.
see https://github.com/microsoft/TypeScript/issues/40878
Fixed by #25.
package.json type is module. node version v16.14.2.
report this error:
in
main.js
, when modifyimport { getUrlPatternRegExp } from './urlPattern';
add .js suffix toimport { getUrlPatternRegExp } from './urlPattern.js';
, everythings ok now.