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
After uploading project to git hub and trying to deploy the site through fleek. It keeps failing Deployment. I'm noticing the error Missing Strong Random Number Source alot throughout build and export. I assume it might have something to do with that but not sure cuz I'm not using ethers.Wallet.createRandom();.
$ next build
warn - You have enabled experimental feature (images) in next.config.js.
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - SWC minify release candidate enabled. https://nextjs.link/swcmin
./components/LotteryEntrance.js
98:8 Warning: React Hook useEffect has missing dependencies: 'raffleAddress', 'updateUi', and 'webSocketProvider'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
./components/ManualHeader.jsx
35:8 Warning: React Hook useEffect has a missing dependency: 'enableWeb3'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
49:8 Warning: React Hook useEffect has missing dependencies: 'Moralis' and 'deactivateWeb3'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info - Linting and checking validity of types
info - Creating an optimized production build
warn - Compiled with warnings
./node_modules/react-moralis/lib/index.esm.js
Module not found: Can't resolve 'magic-sdk' in '/Users/spencershelton/Documents/CodeCampSmartContract/nextjs-smartcontract-lottery/node_modules/react-moralis/lib'
Import trace for requested module:
./pages/_app.js
info - Collecting page data ...WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
info - Collecting page data .WARNING: Missing strong random number source
WARNING: Missing strong random number source
info - Collecting page data
[ ] info - Generating static pages (0/3)WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
[= ] info - Generating static pages (0/3)WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
[== ] info - Generating static pages (2/3)chainId: null)
NaN
info - Generating static pages (3/3)
info - Finalizing page optimization
Route (pages) Size First Load JS
┌ ○ / (1020 ms) 341 kB 1.55 MB
├ └ css/7c9e31c2156353a4.css 706 B
├ /_app 0 B 1.21 MB
├ ○ /404 188 B 1.21 MB
└ λ /api/hello 0 B 1.21 MB
+ First Load JS shared by all 1.21 MB
├ chunks/framework-4bae2c966b0001c5.js 45.7 kB
├ chunks/main-c9498d3ad37192eb.js 31.1 kB
├ chunks/pages/_app-f4fc5ce58bb4d7f6.js 1.13 MB
├ chunks/webpack-2da331546309934a.js 2.21 kB
└ css/0feddec18d82390a.css 1.74 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
✨ Done in 19.62s.
after running yarn next export
yarn run v1.22.15
$ /Users/spencershelton/Documents/CodeCampSmartContract/nextjs-smartcontract-lottery/node_modules/.bin/next export
warn - You have enabled experimental feature (images) in next.config.js.
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - SWC minify release candidate enabled. https://nextjs.link/swcmin
info - using build directory: /Users/spencershelton/Documents/CodeCampSmartContract/nextjs-smartcontract-lottery/.next
info - Copying "static build" directory
info - No "exportPathMap" found in "/Users/spencershelton/Documents/CodeCampSmartContract/nextjs-smartcontract-lottery/next.config.js". Generating map from "./pages"
info - Launching 7 workers
warn - Statically exporting a Next.js application via `next export` disables API routes.
This command is meant for static-only hosts, and is not necessary to make your application static.
Pages in your application without server-side data dependencies will be automatically statically exported by `next build`, including pages powered by `getStaticProps`.
Learn more: https://nextjs.org/docs/messages/api-routes-static-export
info - Copying "public" directory
[= ] info - Exporting (0/3)WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
WARNING: Missing strong random number source
info - Exporting (3/3)
Export successful. Files written to /Users/spencershelton/Documents/CodeCampSmartContract/nextjs-smartcontract-lottery/out
✨ Done in 1.68s.
Spencers-iMac:nextjs-smartcontract-lottery spencershelton$
Deploy log from fleek
Deploy started at 2022-08-29T23:47:51.784Z
2022-08-29T23:47:52.174Z: Deploy started
2022-08-29T23:47:54.316Z: Docker image: 'fleek/next-js:node-16'
2022-08-29T23:47:54.316Z: Build command: 'yarn install && yarn run build && yarn next export'
2022-08-29T23:47:54.316Z: Triggering build execution...
2022-08-29T23:48:37.140Z: yarn install v1.22.5
2022-08-29T23:48:37.204Z: [1/4] Resolving packages...
2022-08-29T23:48:37.568Z: [2/4] Fetching packages...
2022-08-29T23:48:55.819Z: info @next/swc-android-arm-eabi@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.819Z: info "@next/swc-android-arm-eabi@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-android-arm-eabi@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.820Z: info @next/swc-android-arm64@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-android-arm64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-android-arm64@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.820Z: info @next/swc-darwin-arm64@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-darwin-arm64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-darwin-arm64@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.820Z: info @next/swc-darwin-x64@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-darwin-x64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-freebsd-x64@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-freebsd-x64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-linux-arm-gnueabihf@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-linux-arm-gnueabihf@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-linux-arm64-gnu@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-linux-arm64-gnu@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.820Z: info @next/swc-linux-arm64-musl@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.820Z: info "@next/swc-linux-arm64-musl@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.821Z: info @next/swc-win32-arm64-msvc@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.821Z: info "@next/swc-win32-arm64-msvc@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.821Z: info @next/swc-win32-arm64-msvc@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.821Z: info @next/swc-win32-ia32-msvc@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.821Z: info "@next/swc-win32-ia32-msvc@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.821Z: info @next/swc-win32-ia32-msvc@12.2.5: The CPU architecture "x64" is incompatible with this module.
2022-08-29T23:48:55.821Z: info @next/swc-win32-x64-msvc@12.2.5: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.821Z: info "@next/swc-win32-x64-msvc@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.825Z: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
2022-08-29T23:48:55.825Z: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
2022-08-29T23:48:55.827Z: [3/4] Linking dependencies...
2022-08-29T23:48:55.830Z: warning "@web3uikit/web3 > @web3auth/web3auth@1.2.4" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.830Z: warning " > react-moralis@1.4.1" has unmet peer dependency "moralis-v1@>=1.11.0".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > wp5-cra-polyfill@0.0.1" has unmet peer dependency "webpack@>=5".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/base@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/core@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/metamask-adapter@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter@1.2.4" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/phantom-adapter@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/torus-evm-adapter@1.2.1" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.831Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/torus-solana-adapter@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/ui@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/wallet-connect-v1-adapter@1.2.4" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > react-moralis > use-immer@0.6.0" has incorrect peer dependency "react@^16.8.0 || ^17.0.1".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > wp5-cra-polyfill > node-polyfill-webpack-plugin@1.1.4" has unmet peer dependency "webpack@>=5".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/base > @toruslabs/http-helpers@3.1.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/base > @toruslabs/openlogin-jrpc@2.5.0" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/metamask-adapter > @web3auth/base-evm-adapter@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.832Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter > @toruslabs/openlogin@2.5.0" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter > @toruslabs/openlogin-ed25519@2.0.0" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter > @web3auth/base-provider@1.2.0" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter > @web3auth/ethereum-provider@1.2.4" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter > @web3auth/solana-provider@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/phantom-adapter > @web3auth/base-solana-adapter@1.2.0" has unmet peer dependency "@babel/runtime@^7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed@1.27.3" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.833Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/torus-solana-adapter > @toruslabs/solana-embed@0.2.2" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime@7.18.10" has unmet peer dependency "@babel/core@^7.0.0-0".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/base > @toruslabs/openlogin-jrpc > @toruslabs/openlogin-utils@2.1.0" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/openlogin-adapter > @web3auth/base-provider > @toruslabs/base-controllers@2.2.6" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/fetch-node-details@7.0.2" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @web3auth/web3auth > @web3auth/torus-evm-adapter > @toruslabs/torus-embed > @toruslabs/torus.js@6.1.0" has unmet peer dependency "@babel/runtime@7.x".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2@0.3.2" has unmet peer dependency "@babel/core@^7.0.0-0".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs3@0.5.3" has unmet peer dependency "@babel/core@^7.0.0-0".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-regenerator@0.4.0" has unmet peer dependency "@babel/core@^7.0.0-0".
2022-08-29T23:48:55.834Z: warning "@web3uikit/web3 > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2 > @babel/helper-define-polyfill-provider@0.3.2" has unmet peer dependency "@babel/core@^7.4.0-0".
2022-08-29T23:48:55.835Z: warning "@web3uikit/web3 > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2 > @babel/helper-define-polyfill-provider > @babel/helper-compilation-targets@7.18.9" has unmet peer dependency "@babel/core@^7.0.0".
2022-08-29T23:48:55.837Z: warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
2022-08-29T23:49:09.680Z: [4/4] Building fresh packages...
2022-08-29T23:49:17.517Z: Done in 40.38s.
2022-08-29T23:49:17.673Z: yarn run v1.22.5
2022-08-29T23:49:17.698Z: $ next build
2022-08-29T23:49:18.103Z: warn - You have enabled experimental feature (images) in next.config.js.
2022-08-29T23:49:18.103Z: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
2022-08-29T23:49:18.103Z: info - SWC minify release candidate enabled. https://nextjs.link/swcmin
2022-08-29T23:49:18.118Z: Attention: Next.js now collects completely anonymous telemetry regarding usage.
2022-08-29T23:49:18.118Z: This information is used to shape Next.js' roadmap and prioritize features.
2022-08-29T23:49:18.118Z: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2022-08-29T23:49:18.118Z: https://nextjs.org/telemetry
2022-08-29T23:49:18.235Z: info - Linting and checking validity of types...
2022-08-29T23:49:19.494Z: ./components/LotteryEntrance.js
2022-08-29T23:49:19.494Z: 98:8 Warning: React Hook useEffect has missing dependencies: 'raffleAddress', 'updateUi', and 'webSocketProvider'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
2022-08-29T23:49:19.494Z: ./components/ManualHeader.jsx
2022-08-29T23:49:19.494Z: 35:8 Warning: React Hook useEffect has a missing dependency: 'enableWeb3'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
2022-08-29T23:49:19.494Z: 49:8 Warning: React Hook useEffect has missing dependencies: 'Moralis' and 'deactivateWeb3'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
2022-08-29T23:49:19.494Z: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
2022-08-29T23:49:19.505Z: info - Creating an optimized production build...
2022-08-29T23:49:51.431Z: warn - Compiled with warnings
2022-08-29T23:49:51.431Z: ./node_modules/react-moralis/lib/index.esm.js
2022-08-29T23:49:51.431Z: Module not found: Can't resolve 'magic-sdk' in '/workspace/node_modules/react-moralis/lib'
2022-08-29T23:49:51.431Z: Import trace for requested module:
2022-08-29T23:49:51.431Z: ./pages/_app.js
2022-08-29T23:49:51.431Z: info - Collecting page data...
2022-08-29T23:49:51.934Z: WARNING: Missing strong random number source
2022-08-29T23:49:51.939Z: WARNING: Missing strong random number source
2022-08-29T23:49:51.970Z: WARNING: Missing strong random number source
2022-08-29T23:49:51.979Z: WARNING: Missing strong random number source
2022-08-29T23:49:52.176Z: WARNING: Missing strong random number source
2022-08-29T23:49:52.181Z: WARNING: Missing strong random number source
2022-08-29T23:49:55.175Z: info - Generating static pages (0/3)
2022-08-29T23:49:55.824Z: chainId: null)
2022-08-29T23:49:55.825Z: NaN
2022-08-29T23:49:55.853Z: node:events:371
2022-08-29T23:49:55.853Z: throw er; // Unhandled 'error' event
2022-08-29T23:49:55.853Z: ^
2022-08-29T23:49:55.853Z: Error: connect ECONNREFUSED 127.0.0.1:8545
2022-08-29T23:49:55.853Z: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1132:16)
2022-08-29T23:49:55.853Z: Emitted 'error' event on WebSocket instance at:
2022-08-29T23:49:55.853Z: at ClientRequest.<anonymous> (/workspace/node_modules/@ethersproject/providers/node_modules/ws/lib/websocket.js:579:15)
2022-08-29T23:49:55.853Z: at ClientRequest.emit (node:events:394:28)
2022-08-29T23:49:55.853Z: at Socket.socketErrorListener (node:_http_client:447:9)
2022-08-29T23:49:55.853Z: at Socket.emit (node:events:394:28)
2022-08-29T23:49:55.853Z: at emitErrorNT (node:internal/streams/destroy:193:8)
2022-08-29T23:49:55.853Z: at emitErrorCloseNT (node:internal/streams/destroy:158:3)
2022-08-29T23:49:55.853Z: at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-08-29T23:49:55.853Z: errno: -111,
2022-08-29T23:49:55.853Z: code: 'ECONNREFUSED',
2022-08-29T23:49:55.853Z: syscall: 'connect',
2022-08-29T23:49:55.853Z: address: '127.0.0.1',
2022-08-29T23:49:55.853Z: port: 8545
2022-08-29T23:49:55.853Z: }
2022-08-29T23:49:56.218Z: WARNING: Missing strong random number source
2022-08-29T23:49:56.224Z: WARNING: Missing strong random number source
2022-08-29T23:49:56.878Z: chainId: null)
2022-08-29T23:49:56.878Z: NaN
2022-08-29T23:49:56.933Z: node:events:371
2022-08-29T23:49:56.933Z: throw er; // Unhandled 'error' event
2022-08-29T23:49:56.933Z: ^
2022-08-29T23:49:56.933Z: Error: connect ECONNREFUSED 127.0.0.1:8545
2022-08-29T23:49:56.933Z: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1132:16)
2022-08-29T23:49:56.933Z: Emitted 'error' event on WebSocket instance at:
2022-08-29T23:49:56.933Z: at ClientRequest.<anonymous> (/workspace/node_modules/@ethersproject/providers/node_modules/ws/lib/websocket.js:579:15)
2022-08-29T23:49:56.933Z: at ClientRequest.emit (node:events:394:28)
2022-08-29T23:49:56.933Z: at Socket.socketErrorListener (node:_http_client:447:9)
2022-08-29T23:49:56.933Z: at Socket.emit (node:events:394:28)
2022-08-29T23:49:56.933Z: at emitErrorNT (node:internal/streams/destroy:193:8)
2022-08-29T23:49:56.933Z: at emitErrorCloseNT (node:internal/streams/destroy:158:3)
2022-08-29T23:49:56.933Z: at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-08-29T23:49:56.933Z: errno: -111,
2022-08-29T23:49:56.933Z: code: 'ECONNREFUSED',
2022-08-29T23:49:56.933Z: syscall: 'connect',
2022-08-29T23:49:56.933Z: address: '127.0.0.1',
2022-08-29T23:49:56.933Z: port: 8545
2022-08-29T23:49:56.933Z: }
2022-08-29T23:49:57.302Z: WARNING: Missing strong random number source
2022-08-29T23:49:57.308Z: WARNING: Missing strong random number source
2022-08-29T23:49:57.960Z: chainId: null)
2022-08-29T23:49:57.960Z: NaN
2022-08-29T23:49:58.012Z: node:events:371
2022-08-29T23:49:58.012Z: throw er; // Unhandled 'error' event
2022-08-29T23:49:58.012Z: ^
2022-08-29T23:49:58.012Z: Error: connect ECONNREFUSED 127.0.0.1:8545
2022-08-29T23:49:58.012Z: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1132:16)
2022-08-29T23:49:58.012Z: Emitted 'error' event on WebSocket instance at:
2022-08-29T23:49:58.012Z: at ClientRequest.<anonymous> (/workspace/node_modules/@ethersproject/providers/node_modules/ws/lib/websocket.js:579:15)
2022-08-29T23:49:58.012Z: at ClientRequest.emit (node:events:394:28)
2022-08-29T23:49:58.012Z: at Socket.socketErrorListener (node:_http_client:447:9)
2022-08-29T23:49:58.012Z: at Socket.emit (node:events:394:28)
2022-08-29T23:49:58.012Z: at emitErrorNT (node:internal/streams/destroy:193:8)
2022-08-29T23:49:58.012Z: at emitErrorCloseNT (node:internal/streams/destroy:158:3)
2022-08-29T23:49:58.012Z: at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-08-29T23:49:58.012Z: errno: -111,
2022-08-29T23:49:58.012Z: code: 'ECONNREFUSED',
2022-08-29T23:49:58.012Z: syscall: 'connect',
2022-08-29T23:49:58.012Z: address: '127.0.0.1',
2022-08-29T23:49:58.012Z: port: 8545
2022-08-29T23:49:58.012Z: }
2022-08-29T23:49:58.376Z: WARNING: Missing strong random number source
2022-08-29T23:49:58.382Z: WARNING: Missing strong random number source
2022-08-29T23:49:59.035Z: chainId: null)
2022-08-29T23:49:59.035Z: NaN
2022-08-29T23:49:59.088Z: node:events:371
2022-08-29T23:49:59.088Z: throw er; // Unhandled 'error' event
2022-08-29T23:49:59.088Z: ^
2022-08-29T23:49:59.088Z: Error: connect ECONNREFUSED 127.0.0.1:8545
2022-08-29T23:49:59.088Z: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1132:16)
2022-08-29T23:49:59.088Z: Emitted 'error' event on WebSocket instance at:
2022-08-29T23:49:59.088Z: at ClientRequest.<anonymous> (/workspace/node_modules/@ethersproject/providers/node_modules/ws/lib/websocket.js:579:15)
2022-08-29T23:49:59.088Z: at ClientRequest.emit (node:events:394:28)
2022-08-29T23:49:59.088Z: at Socket.socketErrorListener (node:_http_client:447:9)
2022-08-29T23:49:59.088Z: at Socket.emit (node:events:394:28)
2022-08-29T23:49:59.088Z: at emitErrorNT (node:internal/streams/destroy:193:8)
2022-08-29T23:49:59.088Z: at emitErrorCloseNT (node:internal/streams/destroy:158:3)
2022-08-29T23:49:59.088Z: at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-08-29T23:49:59.088Z: errno: -111,
2022-08-29T23:49:59.088Z: code: 'ECONNREFUSED',
2022-08-29T23:49:59.088Z: syscall: 'connect',
2022-08-29T23:49:59.088Z: address: '127.0.0.1',
2022-08-29T23:49:59.088Z: port: 8545
2022-08-29T23:49:59.088Z: }
2022-08-29T23:49:59.125Z: > Build error occurred
2022-08-29T23:49:59.127Z: Error: Call retries were exceeded
2022-08-29T23:49:59.127Z: at ChildProcessWorker.initialize (/workspace/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
2022-08-29T23:49:59.127Z: at ChildProcessWorker._onExit (/workspace/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
2022-08-29T23:49:59.127Z: at ChildProcess.emit (node:events:394:28)
2022-08-29T23:49:59.127Z: at ChildProcess.emit (node:domain:470:12)
2022-08-29T23:49:59.127Z: at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
2022-08-29T23:49:59.127Z: type: 'WorkerError'
2022-08-29T23:49:59.127Z: }
2022-08-29T23:49:59.205Z: error Command failed with exit code 1.
2022-08-29T23:49:59.205Z: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2022-08-29T23:50:22.755Z: Error occured during the build.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After uploading project to git hub and trying to deploy the site through fleek. It keeps failing Deployment. I'm noticing the error
Missing Strong Random Number Source
alot throughout build and export. I assume it might have something to do with that but not sure cuz I'm not usingethers.Wallet.createRandom();
.ethers-io/ethers.js#2888
also had to add this to my next.config.js for yarn next export to work #1136 (comment)
My Repo Link https://github.com/stshelton/nextjs-smartcontract-lottery
When running yard build console output:
after running yarn next export
Deploy log from fleek
Beta Was this translation helpful? Give feedback.
All reactions