Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Undelcared Dependency #549

Open
bh2smith opened this issue Oct 21, 2024 · 0 comments · May be fixed by #551
Open

Possible Undelcared Dependency #549

bh2smith opened this issue Oct 21, 2024 · 0 comments · May be fixed by #551

Comments

@bh2smith
Copy link
Contributor

bh2smith commented Oct 21, 2024

There, seems to be an issue upgrading this package beyond v0.5.4-beta.0 with what looks like an undeclared graphql dependency in the @mintbase-js/data:

Here is the build error:

./node_modules/graphql-request/build/cjs/resolveRequestDocument.js
Module not found: Can't resolve 'graphql'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/graphql-request/build/cjs/index.js
./node_modules/@mintbase-js/data/lib/graphql/fetch.js
./node_modules/@mintbase-js/data/lib/graphql/index.js
./node_modules/@mintbase-js/data/lib/index.js
./node_modules/@mintbase-js/react/lib/hooks/useNearPrice.js
./node_modules/@mintbase-js/react/lib/index.js
./src/app/layout.tsx


> Build failed because of webpack errors

Experienced first in bh2smith/neareth-tunnel#10 (which depends on @mintbase-js/react).

Here are some of the warnings at installation:

warning "@mintbase-js/react > @near-wallet-selector/meteor-wallet > @meteorwallet/[email protected]" has incorrect peer dependency "near-api-js@^2.0.0".
warning "@mintbase-js/react > @near-wallet-selector/here-wallet > @here-wallet/[email protected]" has unmet peer dependency "[email protected]".
warning "@mintbase-js/react > @near-wallet-selector/here-wallet > @here-wallet/[email protected]" has unmet peer dependency "[email protected]".
warning "@mintbase-js/react > @mintbase-js/wallet > @near-wallet-selector/[email protected]" has incorrect peer dependency "[email protected]".
warning "@mintbase-js/react > @mintbase-js/wallet > @near-wallet-selector/wallet-utils > @near-wallet-selector/[email protected]" has incorrect peer dependency "[email protected]".
warning "@mintbase-js/react > @mintbase-js/wallet > @near-wallet-selector/wallet-utils > @near-wallet-selector/[email protected]" has unmet peer dependency "@near-js/providers@latest".
warning "@mintbase-js/react > @mintbase-js/data > [email protected]" has unmet peer dependency "graphql@14 - 16".
warning "@mintbase-js/react > @mintbase-js/data > graphql-request > @graphql-typed-document-node/[email protected]" has unmet peer dependency "graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".

with the relevant ones being the last two:

"@mintbase-js/react > @mintbase-js/data > [email protected]" has unmet peer dependency "graphql@14 - 16".
"@mintbase-js/react > @mintbase-js/data > graphql-request > @graphql-typed-document-node/[email protected]" has unmet peer dependency "graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant