jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

Uncaught TypeError: util.promisify requires a true ES5 environment, that also supports `__proto__` #131

Closed talentlessguy closed 3 years ago

talentlessguy commented 3 years ago

When trying to import @ethereumjs/vm:

import vm from 'https://dev.jspm.io/@ethereumjs/vm'

I get this:

Uncaught TypeError: util.promisify requires a true ES5 environment, that also supports `__proto__`
    at dew (https://dev.jspm.io/npm:util.promisify@1.1.1/implementation.dew.js:17:11)
    at dew (https://dev.jspm.io/npm:util.promisify@1.1.1/index.dew.js:16:24)
    at dew (https://dev.jspm.io/npm:@ethereumjs/vm@5.5.3/dist.browser/index.dew.js:280:19)
    at https://dev.jspm.io/@ethereumjs/vm:2:16
guybedford commented 3 years ago

What environment are you running in? Deno? If so I would suggest using the Deno import map version that will link against the Deno standard libraries - see https://generator.jspm.io/#6+JhYGBk9M1PKc1JLWZwSC3JSC1KLc3NKtYvy3Uw1TPVMwYA9UiXwCIA.

talentlessguy commented 3 years ago

@guybedford yes it's Deno

and the link you sent doesn't seem to be working

guybedford commented 3 years ago

You can read more on the Deno support in https://jspm.org/docs/workflows#deno.

guybedford commented 3 years ago

and the link you sent doesn't seem to be working

I actually had to fix some issues to get it to work - make sure to clear your browser cache.

talentlessguy commented 3 years ago

awesome, thanks @guybedford , this works:

import * as vm from 'https://dev.jspm.io/@ethereumjs/vm@5.5.3'