mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(docs): failed to install dependencies in StackBlitz (#4639)
This commit is contained in:
parent
ceb63854fc
commit
8f311828ea
@ -177,9 +177,9 @@ export const useSandpack = ({
|
||||
dependencies,
|
||||
entry: entryFile,
|
||||
devDependencies: {
|
||||
autoprefixer: "^10.4.14",
|
||||
postcss: "^8.4.21",
|
||||
tailwindcss: "^3.2.7",
|
||||
autoprefixer: "10.4.20",
|
||||
postcss: "8.4.49",
|
||||
tailwindcss: "3.4.17",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -52,7 +52,18 @@ export function useStackblitz(props: UseSandpackProps) {
|
||||
"dependencies": {
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
${Object.entries(omit(dependencies as any, ["react", "react-dom"]))
|
||||
${Object.entries(
|
||||
omit(dependencies as any, [
|
||||
"react",
|
||||
"react-dom",
|
||||
"react-dom/client",
|
||||
"@vitejs/plugin-react",
|
||||
"vite",
|
||||
"autoprefixer",
|
||||
"postcss",
|
||||
"tailwindcss",
|
||||
]),
|
||||
)
|
||||
.map(([key, value]) => `"${key}": "${value}"`)
|
||||
.join(",\n ")}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user