reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.93k stars 1.41k forks source link

[bug] Property 'w3m-button' does not exist on type 'JSX.IntrinsicElements'. #3093

Open mdesousa opened 4 weeks ago

mdesousa commented 4 weeks ago

Link to minimal reproducible example

https://docs.reown.com/appkit/react/core/installation

Summary

Hi, we are following the steps in the installation. We use vite and typescript and are trying to use the w3m-button component as shown towards the end. The application actually works when we run npm run dev but it won't build in typescript and gives the following error: Property 'w3m-button' does not exist on type 'JSX.IntrinsicElements'.

Are there any extra-steps missing that are needed to make the build aware of the w3m-button component?

Thanks!

List of related npm package versions

@reown/appkit@1.1.3 @reown/appkit-adapter-wagmi@1.1.3 wagmi@2.12.17

mdesousa commented 3 weeks ago

i think i found the solution, just add an import to my project as follows:

import '@reown/appkit/react';
x0good commented 2 weeks ago

I received this error Property 'w3m-button' does not exist on type 'JSX.IntrinsicElements'

after upgrading from nextjs 14 --> 15 and react 18 -> 19-rc

webel commented 3 days ago

@x0good idk if still relevant for you, but the w3m naming is deprecated in favour of appkit. So appkit-button.

x0good commented 2 days ago

@webel yes, with appkit-button the same warning in vscode

Property 'appkit-button' does not exist on type 'JSX.IntrinsicElements'