This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Warnings during a webpack build #84
Closed
Description
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)
- Create a webpack project
- Include ganache-core as a dependency
- Build
Context
I now have a bunch of warnings in my build after including ganache-core as a dependency.
Your Environment
- Version used: latest
- Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
- Server type and version:
- Operating System and version: OSX
- Link to your project: https://circleci.com/gh/0xProject/0x-monorepo/8193 Unfold the build step
Metadata
Metadata
Assignees
Labels
No labels
Activity