prateekbh / preact-material-components

preact wrapper for "Material Components for the web"
https://material.preactjs.com
MIT License
554 stars 81 forks source link

Cannot find namespace JSX #1353

Open precious-void opened 4 years ago

precious-void commented 4 years ago

Getting error log:

node_modules/preact-material-components/Button/index.d.ts(18,41): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/Button/index.d.ts(22,40): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/FormField/index.d.ts(2,42): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/FormField/index.d.ts(10,40): error TS2503: Cannot find namespace 
'JSX'.
node_modules/preact-material-components/Icon/index.d.ts(9,40): error TS2503: Cannot find namespace 'JSX'.[0] node_modules/preact-material-components/LayoutGrid/index.d.ts(10,40): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/LayoutGrid/index.d.ts(38,40): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/LayoutGrid/index.d.ts(47,40): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/Radio/index.d.ts(16,43): error TS2503: Cannot find namespace 'JSX'.
node_modules/preact-material-components/TextField/index.d.ts(14,40): error TS2503: Cannot find namespace 
'JSX'.
node_modules/preact-material-components/TextField/index.d.ts(23,40): error TS2503: Cannot find namespace 
'JSX'.
node_modules/preact-material-components/TextField/index.d.ts(60,43): error TS2503: Cannot find namespace 
'JSX'.
node_modules/preact-material-components/TextField/index.d.ts(84,72): error TS2503: Cannot find namespace 
'JSX'.
node_modules/preact-material-components/TextField/index.d.ts(94,28): error TS2503: Cannot find namespace 
'JSX'.
Preact@10.3.1
preact-material-components@1.6.1

Is there any ideas how to solve it?

prateekbh commented 4 years ago

yeah sorry! this project is not ready for PreactX as of yet

precious-void commented 4 years ago

@prateekbh well, I`m waiting for the update! And thanks for you and all contributors, great project.