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
// using node-style package resolution in a CSS file:
@import "~normalize.css";
@import "~@blueprintjs/core/lib/css/blueprint.css";
@import "~@blueprintjs/icons/lib/css/blueprint-icons.css";
Add the Spinner element inside, for example, the existing Header component:
import { h } from 'preact';
import { Link } from 'preact-router/match';
import style from './style.css';
import { Spinner } from "@blueprintjs/core";
const Header = () => (
<header class={style.header}>
<h1>Preact App</h1>
<Spinner intent="primary" />
<nav>
<Link activeClassName={style.active} href="/">Home</Link>
<Link activeClassName={style.active} href="/profile">Me</Link>
<Link activeClassName={style.active} href="/profile/john">John</Link>
</nav>
</header>
);
export default Header;
Observe errors in IDE and/or run npm run dev and observe errors in console
Actual behavior
'Spinner' cannot be used as a JSX component. Its instance type 'Spinner' is not a valid JSX element.
Expected behavior
No errors.
Possible solution
This has been mentioned in numerous issues, primarily #5250 . I see that a fix has been merged but is a release available? Is this a Preact only issue?
The text was updated successfully, but these errors were encountered:
I'm having this issue as well with React (with a new project scaffolded using Vite) and adding in the <Spinner /> component. Hoping for a fix, as the Getting Started tutorial doesn't work as is.
Environment
Code Sandbox
N/A
Steps to reproduce
npx preact-cli create typescript myproj
npm install @blueprintjs/core
style/index.css
:Spinner
element inside, for example, the existing Header component:npm run dev
and observe errors in consoleActual behavior
Expected behavior
No errors.
Possible solution
This has been mentioned in numerous issues, primarily #5250 . I see that a fix has been merged but is a release available? Is this a Preact only issue?
The text was updated successfully, but these errors were encountered: