Skip to content

Latest version of thirdweb SDK crashing npx thirdweb create contract #662

Open
@simon-tanna

Description

@simon-tanna

When running npx thirdweb create contract the following error is displayed.
Screenshot 2024-08-30 at 3 05 53 pm

# npm resolution error report

While resolving: undefined@undefined
Found: thirdweb@5.48.1
node_modules/thirdweb
  thirdweb@"5.48.3" from the root project

Could not resolve dependency:
thirdweb@"5.48.3" from the root project

Conflicting peer dependency: react@18.2.0
node_modules/react
  peer react@"18.2.0" from react-native@0.73.9
  node_modules/react-native
    peerOptional react-native@"*" from thirdweb@5.48.3
    node_modules/thirdweb
      thirdweb@"5.48.3" from the root project
    peer react-native@"*" from @coinbase/wallet-mobile-sdk@1.0.13
    node_modules/@coinbase/wallet-mobile-sdk
      peerOptional @coinbase/wallet-mobile-sdk@"^1" from thirdweb@5.48.3
      node_modules/thirdweb
        thirdweb@"5.48.3" from the root project
    peer react-native@"^0.0.0-0 || >=0.60 <1.0" from @react-native-async-storage/async-storage@1.24.0
    node_modules/@react-native-async-storage/async-storage
      peerOptional @react-native-async-storage/async-storage@"^1" from thirdweb@5.48.3
      node_modules/thirdweb
        thirdweb@"5.48.3" from the root project
    peer react-native@"^0.61.5 || ^0.62.3 || ^0.63.2 || ^0.64.2 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0" from @react-native-clipboard/clipboard@1.14.1
    node_modules/@react-native-clipboard/clipboard
      peerOptional @react-native-clipboard/clipboard@"*" from thirdweb@5.48.3
      node_modules/thirdweb
        thirdweb@"5.48.3" from the root project
    peer react-native@"^0.73.0" from react-native-windows@0.73.20
    node_modules/react-native-windows
      peer react-native-windows@"^0.61.0 || ^0.62.0 || ^0.63.0 || ^0.64.0 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0" from @react-native-clipboard/clipboard@1.14.1
      node_modules/@react-native-clipboard/clipboard
        peerOptional @react-native-clipboard/clipboard@"*" from thirdweb@5.48.3
        node_modules/thirdweb
          thirdweb@"5.48.3" from the root project
    peer react-native@"*" from react-native-aes-gcm-crypto@0.2.2
    node_modules/react-native-aes-gcm-crypto
      peerOptional react-native-aes-gcm-crypto@"^0.2" from thirdweb@5.48.3
      node_modules/thirdweb
        thirdweb@"5.48.3" from the root project
    peer react-native@"*" from react-native-quick-crypto@0.7.3
    node_modules/react-native-quick-crypto
      peerOptional react-native-quick-crypto@">=0.7.0-rc.6 || >=0.7" from thirdweb@5.48.3
      node_modules/thirdweb
        thirdweb@"5.48.3" from the root project
    peer react-native@"*" from react-native-svg@15.6.0
    node_modules/react-native-svg
      peerOptional react-native-svg@"^15" from thirdweb@5.48.3
      node_modules/thirdweb
        thirdweb@"5.48.3" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

This issue wasn't present when using thirdweb@5.48.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions