Following quick start guide, using BrowserSolidLdoProvider in layout.tsx throws :
[browser] Uncaught TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
at module evaluation (app/layout.tsx:4:1)
at module evaluation (app/layout.tsx:35:1)
2 | import { Geist, Geist_Mono } from "next/font/google";
3 | import "./globals.css";
> 4 | import { BrowserSolidLdoProvider } from "@ldo/solid-react";
env:
"next": "16.2.6"
@solid/react-component": "^0.1.1"
Following quick start guide, using
BrowserSolidLdoProviderinlayout.tsxthrows :env:
"next": "16.2.6"@solid/react-component": "^0.1.1"