NextJS throws error while compiling canvas during SSR. If you see these errors,
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)
the solution would be to install canvas and add it as an external module in nextJS
CSS Specificity when importing stylesheet
NextJS does not respect the order of CSS imports. So there could be style conflicts if you are using tailwindcss in a nextJS project.
The proposed solution is in tailwindcss v3 is
Install postcss-import and add it to your postcss.config.js
Import spreadsheet style using the import statement