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
[explorer]$ pnpm dev
> [email protected] dev /home/ripatel/explorer
> next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 4.6s (782 modules)
wait - compiling...
event - compiled client and server successfully in 537 ms (782 modules)
wait - compiling /not-found (client and server)...
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/[email protected]/node_modules/cross-fetch/dist/node-ponyfill.js
./app/providers/stats/SolanaPingProvider.tsx
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './server.edge' is not defined by "exports" in /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/react-dom/package.json
at new NodeError (node:internal/errors:399:5)
at exportsNotFound (node:internal/modules/esm/resolve:361:10)
at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
at resolveExports (node:internal/modules/cjs/loader:565:36)
at Module._findPath (node:internal/modules/cjs/loader:634:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
at /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:180:36
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/app-render/app-render.js:944:37
at /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/trace/tracer.js:155:62
at /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/trace/tracer.js:113:36
at NoopContextManager.with (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
at ContextAPI.with (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)
at NoopTracer.startActiveSpan (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18086)
at ProxyTracer.startActiveSpan (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18847)
at /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/trace/tracer.js:102:107
at NoopContextManager.with (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
at ContextAPI.with (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)
at NextTracerImpl.trace (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/trace/tracer.js:102:32)
at /home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/trace/tracer.js:155:31
at wrappedRender (/home/ripatel/explorer/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/app-render/app-render.js:995:62)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/[email protected]/node_modules/cross-fetch/dist/node-ponyfill.js
./app/providers/stats/SolanaPingProvider.tsx
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 3.9s (1631 modules)
warn - Fast Refresh had to perform a full reload due to a runtime error.
wait - compiling /page (client and server)...
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@solana/web3.js/lib/index.cjs.js
./app/components/SearchBar.tsx
warn - metadata.metadataBase is not set for resolving social open graph or twitter images, fallbacks to "http://localhost:3000". See https://beta.nextjs.org/docs/api-reference/metadata#metadatabase
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@solana/web3.js/lib/index.cjs.js
./app/components/SearchBar.tsx
wait - compiling /favicon.ico/route (client and server)...
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@solana/web3.js/lib/index.cjs.js
./app/components/SearchBar.tsx
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@solana/web3.js/lib/index.cjs.js
./app/components/SearchBar.tsx
wait - compiling /apple-icon.png/route (client and server)...
warn - ./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/crypto-hash/index.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]._fcrremxmxlhtc5vafxgeq27db4/node_modules/@metaplex/js/lib/index.cjs.js
./app/providers/accounts/index.tsx
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/home/ripatel/explorer/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@solana/web3.js/lib/index.cjs.js
./app/components/SearchBar.tsx
pnpm run dev still seems to somewhat work, though
To Reproduce
Steps to reproduce the behavior:
Check out new repo
pnpm i
pnpm dev
The text was updated successfully, but these errors were encountered:
The context is that we rescued Explorer from the dead, and it's a miracle that there are only this many rogue logs.
The site used to be based on a many-times-over-deprecated version of Create React App. This year we modernized it all the way to the newest Next.js with the App Router infra. At each step of the process I made sure to lock the version of each dependency so as no to introduce too much change at once. Now that we are on a (new) stable foundation, we can start eliminating and/or updating those dependencies to eliminate the kind of build warnings that you're seeing here.
I appreciate that this makes the logs messy, but would like to close this on the basis that – as you've said – everything seems to somewhat work, though.
Describe the bug
System (RHEL 8)
Install log
pnpm run dev logs
pnpm run dev
still seems to somewhat work, thoughTo Reproduce
Steps to reproduce the behavior:
pnpm i
pnpm dev
The text was updated successfully, but these errors were encountered: