SolidJS & Vitest - No named export called "hydrate"

Viewed 166

I'm new to SolidJS, trying to learn it right now. I come from a mainly React background, and I really like the concepts at work here. Anyway, I'm trying to get vitest to work, I've set things up exactly as examples online have showed, but I get this error:

SyntaxError: The requested module 'solid-js/web' does not provide an export named 'hydrate'

There's no stack trace sadly, just this error and a line number. The line number points to this:

import { App } from './components/App';

So basically the error is coming from trying to render my SolidJS component tree. I'm using solid-testing-library to do this.

I'm unsure where this error is coming from.

0 Answers
Related