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
ReferenceError: Can't find variable: require in ./node_modules/@blueprintjs/core/lib/esm/index.js
where the error code is like
if (typeof window !== "undefined" && typeof document !== "undefined") {
// we're in browser
// tslint:disable-next-line:no-var-requires
require("dom4"); // only import actual dom4 if we're in the browser (not server-compatible)
// we'll still need dom4 types for the TypeScript to compile, these are included in package.json
}
Environment
"@blueprintjs/core": "^3.10.0",
safari on macOS Mojave
Expected behavior
'require' should not be in esm code
The text was updated successfully, but these errors were encountered:
r-laf
changed the title
require("dom4") in
require("dom4") in esm code
Dec 23, 2018
ooh interesting yeah makes sense this would happen. don't think we can do anything about it without an API break though. upgrading to typescript 3 and using import() would work, but the semantics are quite different. will track solving this soon.
ReferenceError: Can't find variable: require in ./node_modules/@blueprintjs/core/lib/esm/index.js
where the error code is like
Environment
"@blueprintjs/core": "^3.10.0",
safari on macOS Mojave
Expected behavior
'require' should not be in esm code
The text was updated successfully, but these errors were encountered: