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
{{ message }}
This repository was archived by the owner on Jun 8, 2024. It is now read-only.
As ethcall is using assert keyword inside lib/call.js and lib/calls.js to import ABI's. Using ethcall in typescript project giving importAssertions error. It's a CRA which is customized using react-app-rewired
The solution is suggested in the error itself, which is adding a Babel plugin called @babel/plugin-syntax-import-assertions
As
ethcallis usingassertkeyword insidelib/call.jsandlib/calls.jsto import ABI's. Using ethcall in typescript project givingimportAssertionserror. It's aCRAwhich is customized usingreact-app-rewiredThe solution is suggested in the error itself, which is adding a Babel plugin called
@babel/plugin-syntax-import-assertionsOr are there any other solutions for this?