Closed moriaam closed 11 months ago
Snapshots which affect global state (in this case core-js is applying a bunch of polyfills) tend to crash v8. The feature is more made for defining a bunch of functions, as far as I can tell. If you can, try something like export const init = () => await import('core-js/web/url')
and then invoke await init()
when you start the snapshot.
thank you, that did the trick and solved the issue.
Hello, I started getting failures on
ivm.Isolate
after bumping node from 16 to 18. I managed to isolated the issue and I'm getting the following errors sporadically:this seems to be directly related to the import I'm using:
when I replace it with other imports it doesn't reproduce.
failing with node: 18.18.2 working with node 16.17.0
macOS Sonoma 14.1.1 processor 2.4 GHz 8-Core Intel Core i9 yarn 1.22.19
package.json
src/index.js
src/myWorker.js