dm3 icon indicating copy to clipboard operation
dm3 copied to clipboard

Error when running the web package: axios_1.default.post is not a function

Open Muhammad-Altabba opened this issue 1 year ago • 1 comments

Hello guys, I got an error while trying to I am trying to run the web application with the following steps.:

  • yarn && yarn build
  • cd packages/web
  • yarn start
  • Press Sign In in the website and sign twice with MetaMask.
  • The error came: Uncaught runtime errors: axios_1.default.post is not a function

The error happens in the file: /packages/lib/offchainResolver-api/src/index.ts at: const { status } = await axios.post(url, data);

It seems something related to the build configuration. As when logging axios_1 in the browser:

{default: '/static/media/axios.cae3b842dc3a1d186a27.cjs'}

So, I am wondering how you run the website from packages/web. And I am wondering, what I am missing?

node -v: v16.16.0 npm -version: 9.3.0 OS: Linux Mint

Thanks,

Muhammad-Altabba avatar Sep 16 '23 06:09 Muhammad-Altabba

Hi Muhammad, sorry for the late reply. We are releasing the new version of the components at the moment and will address this issue as well.

steffenkux avatar Jan 19 '24 13:01 steffenkux