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
I alias react and react-dom type to preact/compat for use linaria/react(CSS in JS module) in typescript project.
type check result
❯ yarn tsc
yarn run v1.19.1
warning ../../../package.json: No license field
$ /Users/muhun/github/reflation/extension/node_modules/.bin/tsc
node_modules/@types/enzyme/index.d.ts:22:5 - error TS2724: preact/compat has no exported member 'ReactElement'. Did you mean 'createElement'?
22 ReactElement,
~~~~~~~~~~~~
node_modules/@types/enzyme/index.d.ts:30:14 - error TS2515: Non-abstract class 'ElementClass' does not implement inherited abstract member 'render' from class 'Component<any, any>'.
30 export class ElementClass extends Component<any, any> {}
The error in above not appear when remove preact/compat type alias. but another type error appear in react library. How can I solve it?
The text was updated successfully, but these errors were encountered:
Hello, There is a type conflict with the
preact/compat
type.tsconfig.json
I alias
react
andreact-dom
type topreact/compat
for uselinaria/react
(CSS in JS module) in typescript project.type check result
The error in above not appear when remove
preact/compat
type alias. but another type error appear in react library. How can I solve it?The text was updated successfully, but these errors were encountered: