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
I tried to run your code on my local environment. I work with a Windows machine with VS Code installed.
moe@LAPTOP:~/demo-apps/nextjs_moralis_nft_gating$ yarn dev
yarn run v1.22.15
warning package.json: No license field
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from /home/moe/demo-apps/nextjs_moralis_nft_gating/.env.local
error - ./node_modules/@wagmi/connectors/dist/chunk-3AFMPFBA.js:22:0
Module not found: Package path ./lib/utils.js is not exported from package /home/moe/demo-apps/nextjs_moralis_nft_gating/node_modules/ethers (see exports field in /home/moe/demo-apps/nextjs_moralis_nft_gating/node_modules/ethers/package.json)
Import trace for requested module:
./node_modules/@wagmi/connectors/dist/injected.js
./node_modules/@wagmi/core/dist/chunk-BVC4KGLQ.js
./node_modules/@wagmi/core/dist/internal/index.js
./node_modules/wagmi/dist/index.js
./pages/_app.jsx
https://nextjs.org/docs/messages/module-not-found
wait - compiling...
error - ./node_modules/@wagmi/connectors/dist/chunk-3AFMPFBA.js:22:0
Module not found: Package path ./lib/utils.js is not exported from package /home/moe/demo-apps/nextjs_moralis_nft_gating/node_modules/ethers (see exports field in /home/moe/demo-apps/nextjs_moralis_nft_gating/node_modules/ethers/package.json)
Import trace for requested module:
./node_modules/@wagmi/connectors/dist/injected.js
./node_modules/@wagmi/core/dist/chunk-BVC4KGLQ.js
./node_modules/@wagmi/core/dist/index.js
./node_modules/wagmi/dist/index.js
./pages/_app.jsx
https://nextjs.org/docs/messages/module-not-found`
I already tried to install the necessary components with the yarn add all command, but it gives me many warnings:
yarn add v1.22.15
warning package.json: No license field
warning nextjs_moralis_nft_gating@1.0.0: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info @next/swc-android-arm-eabi@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-android-arm-eabi@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-android-arm-eabi@12.2.5: The CPU architecture "x64" is incompatible with this module.
info @next/swc-android-arm64@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-android-arm64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-android-arm64@12.2.5: The CPU architecture "x64" is incompatible with this module.
info @next/swc-darwin-arm64@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-darwin-arm64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-darwin-arm64@12.2.5: The CPU architecture "x64" is incompatible with this module.
info @next/swc-darwin-x64@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-darwin-x64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-freebsd-x64@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-freebsd-x64@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-linux-arm-gnueabihf@12.2.5: The CPU architecture "x64" is incompatible with this module.
info "@next/swc-linux-arm-gnueabihf@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-linux-arm64-gnu@12.2.5: The CPU architecture "x64" is incompatible with this module.
info "@next/swc-linux-arm64-gnu@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-linux-arm64-musl@12.2.5: The CPU architecture "x64" is incompatible with this module.
info "@next/swc-linux-arm64-musl@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-win32-arm64-msvc@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-win32-arm64-msvc@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-win32-arm64-msvc@12.2.5: The CPU architecture "x64" is incompatible with this module.
info @next/swc-win32-ia32-msvc@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-win32-ia32-msvc@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-win32-ia32-msvc@12.2.5: The CPU architecture "x64" is incompatible with this module.
info @next/swc-win32-x64-msvc@12.2.5: The platform "linux" is incompatible with this module.
info "@next/swc-win32-x64-msvc@12.2.5" is an optional dependency and failed compatibility check. Excluding it from installation.
warning abitype@0.3.0: The engine "pnpm" appears to be invalid.
[3/4] Linking dependencies...
warning " > wagmi@0.12.12" has incorrect peer dependency "ethers@>=5.5.1 <6".
warning "wagmi > @wagmi/core@0.10.10" has incorrect peer dependency "ethers@>=5.5.1 <6".
warning "wagmi > abitype@0.3.0" has incorrect peer dependency "typescript@>=4.9.4".
warning "wagmi > @wagmi/core > @wagmi/connectors@0.3.16" has incorrect peer dependency "ethers@>=5.5.1 <6".
[4/4] Building fresh packages...
success Saved lockfile.
warning nextjs_moralis_nft_gating@1.0.0: No license field
success Saved 13 new dependencies.
info Direct dependencies
├─ @moralisweb3/next@2.19.0
├─ moralis@2.19.0
└─ next-auth@4.22.1
info All dependencies
├─ @moralisweb3/aptos-api@2.19.0
├─ @moralisweb3/next@2.19.0
├─ @moralisweb3/streams@2.19.0
├─ @panva/hkdf@1.1.1
├─ cookie@0.5.0
├─ follow-redirects@1.15.2
├─ jose@4.14.3
├─ moralis@2.19.0
├─ next-auth@4.22.1
├─ object-hash@2.2.0
├─ oidc-token-hash@5.0.3
├─ openid-client@5.4.2
└─ proxy-from-env@1.1.0
Done in 14.64s.
`
Did some of you also face the same problem on Windows and if yes, how did you handle this error?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
Hello everyone,
I tried to run your code on my local environment. I work with a Windows machine with VS Code installed.
I already tried to install the necessary components with the yarn add all command, but it gives me many warnings:
The text was updated successfully, but these errors were encountered: