Using Spreadsheet with NextJS
SSR is supported, but Server components, not yet
"use client";
import "@rowsncolumns/spreadsheet/dist/spreadsheet.min.css";
import { SpreadsheetProvider, CanvasGrid } from "@rowsncolumns/spreadsheet";
export const Sheet = () => {
return (
<SpreadsheetProvider>
<CanvasGrid />
</SpreadsheetProvider>
);
};Loading Canvas in Node
Error: Module not found: Can't resolve 'canvas'
Did you mean './canvas'?ModuleParseError: Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)CSS Specificity when importing stylesheet
(Optional) Using tailwindcss preset to configure spreadsheet styles
Last updated