Skip to content

Conversation

compojoom
Copy link
Collaborator

What it solves

After merging some of the dependabot PRs it turned out that the build for tx-builder was not succeeding and was failng with

Compiled with problems:X

ERROR in ../../node_modules/axios/lib/utils.js 714:91-98

Module not found: Error: Can't resolve 'process/browser' in '.../safe-react-apps/node_modules/axios/lib'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/axios/lib/utils.js

Cannot read properties of undefined (reading 'module')

I've applied the fix suggested here: axios/axios#6571 and the project is again compiling properly.

How to test it

Checkout the project, run yarn start:tx-builder and open the tx-builder - the app should build and render with no error.

Screenshots

grafik

@github-actions
Copy link

@compojoom compojoom merged commit 354a4b7 into development Aug 28, 2025
6 of 7 checks passed
@compojoom compojoom deleted the fix/axios-cant-compile branch August 28, 2025 10:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants