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
I'm getting runtime errors when compile project with anchor by webpack. In investigation I found this piece of code in npm module
dist/cjs/utils/common.js:
/**
* Returns true if being run inside a web browser,
* false if in a Node process or electron app.
*/
exports.isBrowser = process.env.BROWSER ||
(typeof window !== "undefined" && !((_a = window.process) === null || _a === void 0 ? void 0 : _a.hasOwnProperty("type")));
Looks like it will always fail in browser
The text was updated successfully, but these errors were encountered:
typeof window !== "undefined" && !window.process?.hasOwnProperty("type") should return true in browsers. You can try it by opening the browser console and executing this code.
I'm getting runtime errors when compile project with anchor by webpack. In investigation I found this piece of code in npm module
dist/cjs/utils/common.js:
Looks like it will always fail in browser
The text was updated successfully, but these errors were encountered: