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 has been archived by the owner on Mar 2, 2024. It is now read-only.
@tldraw/www:build:www: Failed to compile. @tldraw/www:build:www: @tldraw/www:build:www: ./pages/_app.tsx:56:8 @tldraw/www:build:www: Type error: 'Component' cannot be used as a JSX component. @tldraw/www:build:www: Its element type 'ReactElement<any, any> | Component<{}, any, any>' is not a valid JSX element. @tldraw/www:build:www: Type 'Component<{}, any, any>' is not assignable to type 'Element | ElementClass'. @tldraw/www:build:www: Type 'Component<{}, any, any>' is not assignable to type 'ElementClass'. @tldraw/www:build:www: The types returned by 'render()' are incompatible between these types. @tldraw/www:build:www: Type 'React.ReactNode' is not assignable to type 'import("/Users/SourceCode/Node/tldraw/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'. @tldraw/www:build:www: Type '{}' is not assignable to type 'ReactNode'. @tldraw/www:build:www: @tldraw/www:build:www: 54 | <title>tldraw</title> @tldraw/www:build:www: 55 | </Head> @tldraw/www:build:www: > 56 | <Component {...pageProps} /> @tldraw/www:build:www: | ^ @tldraw/www:build:www: 57 | </> @tldraw/www:build:www: 58 | ) @tldraw/www:build:www: 59 | }
yarn start:www show error:
@tldraw/core:start: ‣ @tldraw/core: src/hooks/useZoomEvents.ts:129:9 - error TS2322: Type 'number' is not assignable to type 'Vector2 | ((state: PinchState & { event: WheelEvent | TouchEvent | PointerEvent | WebKitGestureEvent; }) => Vector2) | undefined'. @tldraw/core:start: @tldraw/core:start: 129 from: zoom,
yarn start show same error with @tldraw/core: src/hooks/useZoomEvents.ts:129:9
Could you please have a suggestion.
Thank you.
The text was updated successfully, but these errors were encountered:
Thank you Steve for your reply.
I tried git pull today , remove node_modules and try re-install
I run yarn build:www
I run yarn start:www
And site is available in http://localhost:55944
When I test the site, page is blank with a bug Uncaught TypeError: Cannot read properties of null (reading 'useState')
Is there any step I missed ?
I pulled repo today. And:
@tldraw/www:build:www: Failed to compile.
@tldraw/www:build:www:
@tldraw/www:build:www: ./pages/_app.tsx:56:8
@tldraw/www:build:www: Type error: 'Component' cannot be used as a JSX component.
@tldraw/www:build:www: Its element type 'ReactElement<any, any> | Component<{}, any, any>' is not a valid JSX element.
@tldraw/www:build:www: Type 'Component<{}, any, any>' is not assignable to type 'Element | ElementClass'.
@tldraw/www:build:www: Type 'Component<{}, any, any>' is not assignable to type 'ElementClass'.
@tldraw/www:build:www: The types returned by 'render()' are incompatible between these types.
@tldraw/www:build:www: Type 'React.ReactNode' is not assignable to type 'import("/Users/SourceCode/Node/tldraw/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
@tldraw/www:build:www: Type '{}' is not assignable to type 'ReactNode'.
@tldraw/www:build:www:
@tldraw/www:build:www: 54 | <title>tldraw</title>
@tldraw/www:build:www: 55 | </Head>
@tldraw/www:build:www: > 56 | <Component {...pageProps} />
@tldraw/www:build:www: | ^
@tldraw/www:build:www: 57 | </>
@tldraw/www:build:www: 58 | )
@tldraw/www:build:www: 59 | }
@tldraw/core:start: ‣ @tldraw/core: src/hooks/useZoomEvents.ts:129:9 - error TS2322: Type 'number' is not assignable to type 'Vector2 | ((state: PinchState & { event: WheelEvent | TouchEvent | PointerEvent | WebKitGestureEvent; }) => Vector2) | undefined'.
@tldraw/core:start:
@tldraw/core:start: 129 from: zoom,
Could you please have a suggestion.
Thank you.
The text was updated successfully, but these errors were encountered: