Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] fail to build #67

Open
LemonHX opened this issue Jun 14, 2022 · 1 comment
Open

[build] fail to build #67

LemonHX opened this issue Jun 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@LemonHX
Copy link
Member

LemonHX commented Jun 14, 2022

❯ yarn install
yarn install v1.22.19
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @formatjs/intl-relativetimeformat > @formatjs/[email protected]: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package
warning @metamask/controllers > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/controllers > eth-keyring-controller > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/controllers > [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
warning @metamask/controllers > eth-json-rpc-infura > eth-json-rpc-middleware > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/controllers > web3-provider-engine > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/controllers > babel-runtime > [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning @metamask/controllers > eth-keyring-controller > eth-hd-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/controllers > eth-keyring-controller > eth-simple-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/controllers > eth-json-rpc-infura > json-rpc-engine > [email protected]: Renamed to @metamask/safe-event-emitter   
warning @metamask/controllers > eth-json-rpc-infura > eth-json-rpc-middleware > [email protected]: Renamed to @metamask/safe-event-emitter
warning @metamask/controllers > eth-keyring-controller > obs-store > [email protected]: Renamed to @metamask/safe-event-emitter      
warning @metamask/controllers > web3-provider-engine > [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
warning @metamask/controllers > web3-provider-engine > ethereumjs-block > [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
warning @metamask/controllers > web3-provider-engine > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning @metamask/controllers > web3-provider-engine > request > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @metamask/controllers > web3-provider-engine > eth-block-tracker > [email protected]: Renamed to @metamask/safe-event-emitter
warning @metamask/controllers > web3-provider-engine > [email protected]: New package name format for new versions: @ethereumjs/vm. Please update.
warning @metamask/controllers > web3-provider-engine > ethereumjs-vm > [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
warning @metamask/controllers > web3-provider-engine > ethereumjs-vm > ethereumjs-block > [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
warning @metamask/controllers > web3-provider-engine > request > [email protected]: this library is no longer supported
warning @metamask/controllers > web3-provider-engine > ethereumjs-vm > [email protected]: New package name format for new versions: @ethereumjs/common. Please update.
warning @metamask/controllers > web3-provider-engine > ethereumjs-vm > ethereumjs-block > [email protected]: New package name format for new versions: @ethereumjs/common. Please update.
warning @metamask/controllers > web3-provider-engine > ethereumjs-vm > ethereumjs-block > ethereumjs-tx > [email protected]: New package name format for new versions: @ethereumjs/common. Please update.   
warning @metamask/eth-ledger-bridge-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @metamask/eth-ledger-bridge-keyring > [email protected]: New package name format for new versions: @ethereumjs/tx. Please update. 
warning @starcoin/stc-inpage-provider > [email protected]: This project has moved to @types/webextension-polyfill
warning @starcoin/stc-inpage-provider > extension-port-stream > [email protected]: This project has moved to @types/webextension-polyfill
warning @starcoin/stc-json-rpc-middleware > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @starcoin/stc-json-rpc-middleware > [email protected]: Renamed to @metamask/safe-event-emitter
warning @starcoin/stc-keyring-controller > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @starcoin/stc-keyring-controller > @starcoin/stc-util > [email protected]: Switch to namespaced @noble/ed25519 for security and feature updates
warning @starcoin/stc-keyring-controller > @starcoin/stc-simple-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @starcoin/stc-keyring-controller > @starcoin/stc-hd-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'   
warning @starcoin/stc-keyring-controller > @starcoin/stc-simple-keyring > @starcoin/stc-wallet > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @starcoin/stc-multisign-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @starcoin/stc-onekey-keyring > [email protected]: Deprecated in favor of '@metamask/eth-sig-util'
warning @starcoin/stc-onekey-keyring > [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.        
error Couldn't find package "@onekeyhq/[email protected]" required by "@starcoin/stc-onekey-keyring@^1.1.1" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@LemonHX LemonHX added the bug Something isn't working label Jun 14, 2022
@wk3368 wk3368 closed this as completed in 59189a1 Jun 15, 2022
@LemonHX LemonHX reopened this Jun 15, 2022
@LemonHX
Copy link
Member Author

LemonHX commented Jun 15, 2022

in linux

starmask-extension on  main via  v14.19.3 took 2m24s
❯ yarn dist
yarn run v1.22.19
$ yarn build prod
$ lavamoat development/build/index.js prod
(TypeError#1)

  TypeError#1: Cannot assign to read only property 'name' of function 'function createError(opts) {
          var result = new Error();

          Object.defineProperty(result, 'type', {...<omitted>... }'
           var result = new Error();

          Object.defineProperty(result, 'type', {...<omitted>... }'
    at extend (/home/lemonhx/js/starmask-extension/node_modules/xtend/mutable.js:12:29)
    at TypedError (/home/lemonhx/js/starmask-extension/node_modules/error/typed.js:26:5)
    at Object.eval (/home/lemonhx/js/starmask-extension/node_modules/body/any.js:10:28)
    at internalRequire (LavaMoat/core/kernel:353:25)
    at requireRelative (LavaMoat/core/kernel:394:27)
    at requireRelativeWithContext (LavaMoat/core/kernel:366:16)
    at Object.eval (/home/lemonhx/js/starmask-extension/node_modules/tiny-lr/src/server.js:36:12)
    at internalRequire (LavaMoat/core/kernel:353:25)
    at requireRelative (LavaMoat/core/kernel:394:27)
    at requireRelativeWithContext (LavaMoat/core/kernel:366:16)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant