Skip to content

Commit 84e0837

Browse files
authored
Fix Next.js SSR Docs (#2638)
Without this change, Next.js latest fails to compile and complains with: ``` ./node_modules/@react-spectrum/table/dist/main.css Global CSS cannot be imported from within node_modules. Read more: https://nextjs.org/docs/messages/css-npm Location: node_modules/@react-spectrum/table/dist/module.js ``` NB: In the future, it might be nice to template this section in the doc to automatically include the requisite imports, but I'm not familiar enough with this project, nor Next, nor MDX to make that change at the moment.
1 parent 9ba765f commit 84e0837

File tree

1 file changed

+1
-0
lines changed
  • packages/dev/docs/pages/react-spectrum

1 file changed

+1
-0
lines changed

packages/dev/docs/pages/react-spectrum/ssr.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const withTM = require("next-transpile-modules")([
9191
"@react-spectrum/searchfield",
9292
"@react-spectrum/statuslight",
9393
"@react-spectrum/switch",
94+
"@react-spectrum/table",
9495
"@react-spectrum/tabs",
9596
"@react-spectrum/text",
9697
"@react-spectrum/textfield",

0 commit comments

Comments
 (0)