metarhia / metavm

Script loader with isolated sandboxes for node.js 📦
https://metarhia.com
MIT License
42 stars 7 forks source link

Update metavm.js #121

Open pyummm opened 11 months ago

pyummm commented 11 months ago

Not working in container

api-example | /usr/server/node_modules/metavm/metavm.js:34 api-example | Blob, api-example | ^ api-example | api-example | ReferenceError: Blob is not defined api-example | at Object. (/usr/server/node_modules/metavm/metavm.js:34:3) api-example | at Module._compile (node:internal/modules/cjs/loader:1198:14) api-example | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) api-example | at Module.load (node:internal/modules/cjs/loader:1076:32) api-example | at Function.Module._load (node:internal/modules/cjs/loader:911:12) api-example | at Module.require (node:internal/modules/cjs/loader:1100:19) api-example | at require (node:internal/modules/cjs/helpers:119:18) api-example | at Object. (/usr/server/node_modules/metaconfiguration/config.js:3:16) api-example | at Module._compile (node:internal/modules/cjs/loader:1198:14) api-example | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) api-example exited with code 0

tshemsedinov commented 9 months ago

Please provide versions of node and npm, @pyummm I do not believe that it is related to container itself, looks like you have old version of node, maybe we do not support it. Class Blob is global identifier in node since 18.0 and we do not support old node versions, dropped due to LTS schedule