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
Hey,
I've been running into this issue where some of my dependencies rely on console[method].bind(console), but it seems that the engine being used to build the plugin doesn't support this.
I've tried using a polyfill from core-js but I can't seem to get it to run from the entry of my built command, so I've had to resort to editing the function call out from my node_modules.
Ideally there should be a polyfill or something to get around this in the skpm-build step.
Here's the error message I'm gettting
> my-plugin@0.1.0 render:once
> skpm-build --run
[1/4] 🖨 Copied src/manifest.json in 2ms
[2/4] ⛏ Copied assets/icon.png
[3/4] ⚒ Built resources/webview.js in 7966ms
TypeError: console.log.bind is not a function. (In 'console.log.bind(console)', 'console.log.bind' is undefined)
at /Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:61252:4091
at /Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:61202:42
at /Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:61205:2
at . (/node_modules/sass.js/dist/sass.sync.js@/Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:62017:34)
at __webpack_require__ (/Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:27:34)
at /Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:102739:84
at . (/src/scripts/build.ts@/Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:102800:34)
at __webpack_require__ (/Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:27:34)
at . (/src/my-command.ts@/Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:102644:91)
at __webpack_require__ (/Users/username/Projects/example/my-plugin/my-plugin.sketchplugin/Contents/Sketch/__my-command_ts:27:34)
The text was updated successfully, but these errors were encountered:
Hey,
I've been running into this issue where some of my dependencies rely on
console[method].bind(console)
, but it seems that the engine being used to build the plugin doesn't support this.I've tried using a polyfill from core-js but I can't seem to get it to run from the entry of my built command, so I've had to resort to editing the function call out from my node_modules.
Ideally there should be a polyfill or something to get around this in the skpm-build step.
Here's the error message I'm gettting
The text was updated successfully, but these errors were encountered: