darwinia-network / dj

Darwinia bridge relayer tool implemented in nodejs
GNU General Public License v3.0
4 stars 5 forks source link

TypeError: Class extends value undefined is not a constructor or null #36

Closed hackfisher closed 4 years ago

hackfisher commented 4 years ago
promote:~ denny$ dj --version
/Users/denny/.config/yarn/global/node_modules/@darwinia/dj/lib/src/_relay.js:26
class Relay extends util_1.Service {
                           ^

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/Users/denny/.config/yarn/global/node_modules/@darwinia/dj/lib/src/_relay.js:26:28)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/denny/.config/yarn/global/node_modules/@darwinia/dj/lib/src/relay.js:15:34)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/denny/.config/yarn/global/node_modules/@darwinia/dj/lib/index.js:20:33)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
clearloop commented 4 years ago

This is caused by the conflict versions of @darwinia/dj

yarn global remove `@darwinia/dj`
yarn global add `@darwinia/dj`

Will fix this.

clearloop commented 4 years ago

Please re-open if still have this issue.