mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
[PR #14917](https://github.com/twentyhq/twenty/pull/14917/files#diff-e37dead9533eef25d3a1ac323bb68e93ad2edbb932e972e48f4c756e3c2d5c0f) upgraded twenty-website to Next.js v15, which requires React 19. However, the twenty-ui package (imported by twenty-website) uses React 18.2, causing a React version mismatch error. Solution : Downgrade Next.js from ^15.5.4 to ^14.2.0 to maintain compatibility with React 18.2 used across the monorepo.
38 lines
1.2 KiB
JSON
38 lines
1.2 KiB
JSON
{
|
|
"name": "twenty-website",
|
|
"private": true,
|
|
"scripts": {
|
|
"nx": "NX_DEFAULT_PROJECT=twenty-website node ../../node_modules/nx/bin/nx.js",
|
|
"dev": "npx next dev",
|
|
"build": "npx next build",
|
|
"start": "npx next start",
|
|
"lint": "ESLINT_USE_FLAT_CONFIG=true npx next lint",
|
|
"github:sync": "npx tsx src/github/github-sync.ts",
|
|
"github:init": "npx tsx src/github/github-sync.ts --isFullSync",
|
|
"database:migrate": "npx tsx src/database/migrate-database.ts",
|
|
"database:generate:pg": "npx drizzle-kit generate:pg --config=src/database/drizzle-posgres.config.ts"
|
|
},
|
|
"dependencies": {
|
|
"@codesandbox/sandpack-react": "^2.13.5",
|
|
"@docsearch/react": "^3.6.2",
|
|
"@keystatic/core": "^0.5.45",
|
|
"@keystatic/next": "^5.0.3",
|
|
"@markdoc/markdoc": "^0.5.1",
|
|
"@nivo/calendar": "^0.99.0",
|
|
"date-fns": "^2.30.0",
|
|
"drizzle-kit": "^0.20.14",
|
|
"facepaint": "^1.2.1",
|
|
"gray-matter": "^4.0.3",
|
|
"next": "^14.2.0",
|
|
"next-mdx-remote": "^4.4.1",
|
|
"next-runtime-env": "^3.3.0",
|
|
"postgres": "^3.4.3",
|
|
"react-tooltip": "^5.13.1",
|
|
"twenty-ui": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@next/eslint-plugin-next": "^14.2.0",
|
|
"@types/facepaint": "^1.2.5",
|
|
"eslint-config-next": "^14.2.0"
|
|
}
|
|
}
|