-
-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Description
import escapeStringRegexp from 'escape-string-regexp';
Typescript compiles this down to
const escape_string_regexp_1 = require("escape-string-regexp");
which causes Node to throw
[ERROR] uncaughtException: require() of ES Module node_modules\escape-string-regexp\index.js from dist\backend\classes\UiClient.js not supported.
Instead change the require of index.js in dist\backend\classes\UiClient.js to a dynamic import() which is available in all CommonJS modules.
I don't have this issue with any other module; how can I work around this?
eric-burel
Metadata
Metadata
Assignees
Labels
No labels