You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very odd - it looks like those characters may have been introduced in #3291. (We should also check #3137).
Could you clarify when and how you see this error? Does the entire package fail to load?
Web3.js uses browserify to generate the minified bundle it publishes to CDN and we run tests using it in Chrome and Firefox headless browsers. Everything works there but it's likely these whitespace chars are being removed during the uglification step.
(That might be a work-around in your case as well.)
Expected behavior
web3 can be browserified to use in browser
Actual behavior
Uncaught SyntaxError: Unexpected identifier in chrome developer console
Steps to reproduce the behavior
browserify web3.js and use it in an application
Open https://github.com/ethereum/web3.js/blob/1.x/packages/web3-utils/src/index.js in an editor that can show files in multiple formats (like notepad++)
Switch the format to ASCII.
Observe the last 10 lines, start at toTwosComplement.
Here you see multiples instances of Â, which are utf8 characters
Logs
Environment
windows 10, chrome, web3.js 1.2.9, installed via npm install web3
The text was updated successfully, but these errors were encountered: