Open damienen opened 11 months ago
Thank you :pray:
Also reproduced here: https://t.me/MultiversXDevelopers/121486
Issue manifests when a newer @multiversx/sdk-network-providers
is used in conjunction with older versions of@multiversx/sdk-dapp
, which referenced an older axios (before v1).
Normally, the issue should be resolved by:
Further testing is necessary to confirm the fix, though.
Update: https://github.com/multiversx/mx-sdk-dapp/pull/992 should normally fix this.
@damienen could you check sdk-dapp@2.25.2
? Let me know if your error still persists.
cc @andreibancioiu
Yes, I can confirm error persists when using these packages: "@multiversx/sdk-core": "12.17.0", "@multiversx/sdk-dapp": "2.25.2", "@multiversx/sdk-native-auth-client": "1.0.6", "@multiversx/sdk-network-providers": "2.2.0",
Additional step to fix this is attempted here: https://github.com/multiversx/mx-sdk-js-network-providers/pull/53.
Also reported here: https://t.me/MultiversXDevelopers/122488
Possibly related to: https://stackoverflow.com/questions/76888080/react-app-throwing-axios-1-default-post-is-not-a-function-error
This resolved the issue. :pray:
Seems like because of the update of axios to a new version, the tests (internal tests from the library) that use jest return an error when being used in a project:
TypeError: axios_1.default.post is not a function
A related post: https://github.com/facebook/create-react-app/discussions/12823