TS1479: The current file is a CommonJS module whose imports will produce require calls; however, the referenced file is an ECMAScript module and cannot be imported with require. Consider writing a dynamic import(@coinbase/onchainkit/frame)' call instead.
Describe the bug and the steps to reproduce it
TS1479: The current file is a CommonJS module whose imports will produce require calls; however, the referenced file is an ECMAScript module and cannot be imported with require. Consider writing a dynamic import(@coinbase/onchainkit/frame)' call instead.
What's the expected behavior?
No TS error.
What version of the libraries are you using?