Files
plane/apps/web/package.json
sriram veeraghanta e388cb9125 fix: declare @tailwindcss/postcss in admin/space/web for Docker builds (#9189)
The web/admin/space Docker image builds fail at the Vite/PostCSS step with
"Cannot find module '@tailwindcss/postcss'". These apps load the shared
@plane/tailwind-config/postcss.config.js, which references the @tailwindcss/postcss
plugin by name, but the plugin was only declared as a dependency of
packages/tailwind-config.

The Docker build installs via turbo prune + 'pnpm fetch' + 'pnpm install --offline',
which lays out node_modules so PostCSS resolves the plugin relative to the app
directory (apps/<app>), where it is not reachable. A plain 'pnpm install' resolves
it from tailwind-config's context instead, which is why local builds passed and
masked the issue.

Declare @tailwindcss/postcss as a direct devDependency of the three apps that run
Vite/PostCSS so it is symlinked into each app's node_modules and resolves under the
isolated linker regardless of install flow.

Verified by reproducing the exact Docker flow (prune -> fetch -> --frozen-lockfile
offline install -> build) for admin, space and web: all install in sync and build
successfully with full Tailwind CSS output.
2026-06-01 16:44:16 +05:30

92 lines
3.0 KiB
JSON

{
"name": "web",
"version": "1.3.1",
"private": true,
"license": "AGPL-3.0",
"type": "module",
"scripts": {
"dev": "react-router dev --port 3000",
"build": "react-router build",
"preview": "react-router build && serve -s build/client -l 3000",
"start": "serve -s build/client -l 3000",
"clean": "rm -rf .turbo && rm -rf .next && rm -rf .react-router && rm -rf node_modules && rm -rf dist && rm -rf build",
"check:lint": "oxlint --max-warnings=11957 .",
"check:types": "react-router typegen && tsc --noEmit",
"check:format": "oxfmt --check .",
"fix:lint": "oxlint --fix .",
"fix:format": "oxfmt ."
},
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "catalog:",
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "catalog:",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "catalog:",
"@bprogress/core": "catalog:",
"@fontsource-variable/inter": "catalog:",
"@fontsource/ibm-plex-mono": "catalog:",
"@fontsource/material-symbols-rounded": "catalog:",
"@headlessui/react": "catalog:",
"@plane/constants": "workspace:*",
"@plane/editor": "workspace:*",
"@plane/hooks": "workspace:*",
"@plane/i18n": "workspace:*",
"@plane/propel": "workspace:*",
"@plane/services": "workspace:*",
"@plane/shared-state": "workspace:*",
"@plane/types": "workspace:*",
"@plane/ui": "workspace:*",
"@plane/utils": "workspace:*",
"@popperjs/core": "catalog:",
"@react-pdf/renderer": "catalog:",
"@react-router/node": "catalog:",
"@tanstack/react-table": "catalog:",
"axios": "catalog:",
"clsx": "catalog:",
"cmdk": "catalog:",
"comlink": "catalog:",
"date-fns": "catalog:",
"emoji-picker-react": "catalog:",
"export-to-csv": "catalog:",
"isbot": "catalog:",
"lodash-es": "catalog:",
"lucide-react": "catalog:",
"mobx": "catalog:",
"mobx-react": "catalog:",
"mobx-utils": "catalog:",
"next-themes": "catalog:",
"react": "catalog:",
"react-color": "catalog:",
"react-dom": "catalog:",
"react-dropzone": "catalog:",
"react-fast-compare": "catalog:",
"react-hook-form": "catalog:",
"react-is": "catalog:",
"react-markdown": "catalog:",
"react-masonry-component": "catalog:",
"react-pdf-html": "catalog:",
"react-popper": "catalog:",
"react-router": "catalog:",
"recharts": "catalog:",
"serve": "catalog:",
"smooth-scroll-into-view-if-needed": "catalog:",
"swr": "catalog:",
"use-font-face-observer": "catalog:",
"uuid": "catalog:"
},
"devDependencies": {
"@plane/tailwind-config": "workspace:*",
"@plane/typescript-config": "workspace:*",
"@react-router/dev": "catalog:",
"@tailwindcss/postcss": "catalog:",
"@tailwindcss/typography": "catalog:",
"@types/lodash-es": "catalog:",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-color": "catalog:",
"@types/react-dom": "catalog:",
"dotenv": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vite-tsconfig-paths": "catalog:"
}
}