You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Building on v.1.2.1 using create-react-app fails due to webpack warning /node_modules/web3-eth-accounts/src/scrypt.js Critical dependency: the request of a dependency is an expression" when CI=true (ie, fail on warnings)
Expected behavior
Building a create-react-app using webpack should succeed
Actual behavior
I am able to build everything locally, however the build fails in my CI environment. The warning is as follows:
/node_modules/web3-eth-accounts/src/scrypt.js
Critical dependency: the request of a dependency is an expression
Creating an optimized production build...
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
/home/circleci/project/node_modules/web3-eth-accounts/src/scrypt.js
Critical dependency: the request of a dependency is an expression
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build stderr:
error Command failed with exit code 1.
Gists
Versions
web3.js: v1.2.1
nodejs: v10.16.0
browser: circleci
ethereum node:
dOrgJelli, ErickAgrazal, NavyAdmiral, nobodyme, sembrestels and 46 more