Open anhdungle93 opened 7 months ago
@anhdungle93 What version of Node are you using and what version of the Snaps CLI? 👀
My node version is v21.0.0 and snaps-cli is 0.32.2. When I tried with newer snaps-cli version 6.1.0 I got
... Error: Failed to evaluate snap bundle in SES. This is likely due to an incompatibility with the SES environment in your snap.
Received the following error from the SES environment:
[TypeError <Object <Object <[Object: null prototype] {}>>>: Cannot read properties of undefined (reading 'browser')
at 4417 (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:4038574)
at c (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:4244351)
at 8908 (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:500067)
at c (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:4244351)
at eval (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:4248395)
at eval (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:6913874)
at Object.eval (eval at <anonymous> (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27)), <anonymous>:1:6913980)
at Object.eval (eval at makeEvaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/node_modules/ses/dist/ses.cjs:6394:27), <anonymous>:12:22)]
at evaluate (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/dist/chunk-MUYXNION.js:13:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.task (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/dist/chunk-C2OMV3H5.js:47:7)
at async executeSteps (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/dist/chunk-XGWLFH7Y.js:23:7)
at async buildHandler (/Users/anhdungle/learning/galactica/galactica-monorepo/node_modules/@metamask/snaps-cli/dist/chunk-C2OMV3H5.js:53:10)
...
Solve it?
Hi,
I am building a snap, but encountered a problem after
yarn build