jack0son / woke-dapp

Woke Network 🐦→🌐³ Monorepo containing dApp client, smart-contracts, and back-end services.
http://woke.network
2 stars 0 forks source link

app: Build failure due to missing lerna dependency on netlify #10

Open jack0son opened 4 years ago

jack0son commented 4 years ago

The create-react-app bundler does not ignore the conditional require('@woke/contracts') based on the NODE_ENV in src/lib/web3/web3-config.js.

➜  app git:(deploy) ✗ npm run build              

> @woke/app@0.1.0 build /home/jack/Repositories/jgitgud/woke-dapp/@woke/app
> react-scripts build

Creating an optimized production build...
Failed to compile.

./src/lib/web3/web3-config.js
Cannot find module: '@woke/contracts'. Make sure this package is installed.

You can install this package by running: npm install @woke/contracts.
jack0son commented 4 years ago

Issue reference on netlify: https://github.com/netlify/build-image/issues/196