Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Warnings during a webpack build #84

Closed
LogvinovLeon opened this issue Mar 14, 2018 · 1 comment
Closed

Warnings during a webpack build #84

LogvinovLeon opened this issue Mar 14, 2018 · 1 comment

Comments

@LogvinovLeon
Copy link
Contributor

Expected Behavior

Build should be silent with no warnings

Current Behavior

WARNING in /home/circleci/repo/node_modules/ethereumjs-vm/lib/runJit.js
13:16-23 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ /home/circleci/repo/node_modules/ethereumjs-vm/lib/runJit.js
 @ /home/circleci/repo/node_modules/ethereumjs-vm/lib/index.js
 @ /home/circleci/repo/node_modules/ethereumjs-vm/index.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/statemanager.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/subproviders/geth_api_double.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/provider.js
 @ /home/circleci/repo/node_modules/ganache-core/index.js
 @ ../subproviders/lib/src/subproviders/ganache.js
 @ ../subproviders/lib/src/index.js
 @ ./ts/blockchain.ts
 @ ./ts/components/portal.tsx
 @ ./ts/containers/portal.ts
 @ ./ts/index.tsx
 @ multi ./ts/index.tsx

ERROR in /home/circleci/repo/node_modules/ganache-core/lib/database/filedown.js
Module not found: Error: Can't resolve 'fs' in '/home/circleci/repo/node_modules/ganache-core/lib/database'
 @ /home/circleci/repo/node_modules/ganache-core/lib/database/filedown.js 4:9-22
 @ /home/circleci/repo/node_modules/ganache-core/lib/database.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/blockchain_double.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/statemanager.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/subproviders/geth_api_double.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/provider.js
 @ /home/circleci/repo/node_modules/ganache-core/index.js
 @ ../subproviders/lib/src/subproviders/ganache.js
 @ ../subproviders/lib/src/index.js
 @ ./ts/blockchain.ts
 @ ./ts/components/portal.tsx
 @ ./ts/containers/portal.ts
 @ ./ts/index.tsx
 @ multi ./ts/index.tsx

ERROR in /home/circleci/repo/node_modules/rustbn.js/lib/index.asm.js
Module not found: Error: Can't resolve 'fs' in '/home/circleci/repo/node_modules/rustbn.js/lib'
 @ /home/circleci/repo/node_modules/rustbn.js/lib/index.asm.js 1:1297-1310 1:150825-150838
 @ /home/circleci/repo/node_modules/rustbn.js/index.js
 @ /home/circleci/repo/node_modules/ethereumjs-vm/lib/precompiled/07-ecmul.js
 @ /home/circleci/repo/node_modules/ethereumjs-vm/lib/index.js
 @ /home/circleci/repo/node_modules/ethereumjs-vm/index.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/statemanager.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/subproviders/geth_api_double.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/provider.js
 @ /home/circleci/repo/node_modules/ganache-core/index.js
 @ ../subproviders/lib/src/subproviders/ganache.js
 @ ../subproviders/lib/src/index.js
 @ ./ts/blockchain.ts
 @ ./ts/components/portal.tsx
 @ ./ts/containers/portal.ts
 @ ./ts/index.tsx
 @ multi ./ts/index.tsx

ERROR in /home/circleci/repo/node_modules/tmp/lib/tmp.js
Module not found: Error: Can't resolve 'fs' in '/home/circleci/repo/node_modules/tmp/lib'
 @ /home/circleci/repo/node_modules/tmp/lib/tmp.js 13:11-24
 @ /home/circleci/repo/node_modules/ganache-core/lib/database.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/blockchain_double.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/statemanager.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/subproviders/geth_api_double.js
 @ /home/circleci/repo/node_modules/ganache-core/lib/provider.js
 @ /home/circleci/repo/node_modules/ganache-core/index.js
 @ ../subproviders/lib/src/subproviders/ganache.js
 @ ../subproviders/lib/src/index.js
 @ ./ts/blockchain.ts
 @ ./ts/components/portal.tsx
 @ ./ts/containers/portal.ts
 @ ./ts/index.tsx
 @ multi ./ts/index.tsx

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a webpack project
  2. Include ganache-core as a dependency
  3. Build

Context

I now have a bunch of warnings in my build after including ganache-core as a dependency.

Your Environment

fabioberger added a commit to 0xProject/0x-monorepo that referenced this issue Mar 14, 2018
@LogvinovLeon
Copy link
Contributor Author

My bad

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant