Skip to content

[Bug]: Can't resolve 'process/browser' in .../core/dist #1470

@mario-iliev

Description

@mario-iliev

Current Behavior

Hey guys. After updating version of "@web3-onboard/core": "2.12.0" to "2.13.0" I can't run the project and receive the following:

ERROR in ./node_modules/@web3-onboard/core/dist/index-f9d2990f.js 10909:53-60
Module not found: Error: Can't resolve 'process/browser' in '/Users/xxx/xxx/node_modules/@web3-onboard/core/dist'
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/@web3-onboard/core/dist/index-f9d2990f.js
Cannot read properties of undefined (reading 'module')

I have the 'process/browser' plugin in my webpack config and all fallbacks as per your documentation. Any advice?

Expected Behavior

Run without errors or add migration documentation.

Steps To Reproduce

No response

What package is effected by this issue?

@web3-onboard/core

Is this a build or a runtime issue?

Runtime

Package Version

2.13.0

Node Version

v16.14.2

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions