Open ChrisMGeo opened 5 hours ago
I am on Windows 10 22H2, using powershell.
When I create a Next.js monorepo with pnpm, the below error shows up.
I found a StackOverflow answer which helped, but I wonder if this is actually good or not. https://stackoverflow.com/a/79145296/26590605
Expected behavior is to create the monorepo without any issues.
No response
npx create-nx-workspace --pm pnpm --verbose
None
Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 254, reused 245, downloaded 0, added 0 Progress: resolved 544, reused 535, downloaded 0, added 0 Progress: resolved 874, reused 852, downloaded 0, added 0 Progress: resolved 965, reused 917, downloaded 0, added 0 Packages: +919 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 965, reused 918, downloaded 0, added 123 Progress: resolved 965, reused 918, downloaded 0, added 355 Progress: resolved 965, reused 918, downloaded 0, added 597 Progress: resolved 965, reused 918, downloaded 0, added 803 Progress: resolved 965, reused 918, downloaded 0, added 917 Progress: resolved 965, reused 918, downloaded 0, added 918 Progress: resolved 965, reused 918, downloaded 0, added 919 Progress: resolved 965, reused 918, downloaded 0, added 919, done dependencies: + @nx/next 20.1.2 devDependencies: + @nx/workspace 20.1.2 + nx 20.1.2 Done in 14.3s NX Generating @nx/workspace:preset Fetching prettier... Fetching @nx/playwright... Fetching @nx/jest... CREATE tsconfig.base.json CREATE .prettierrc CREATE .prettierignore UPDATE .vscode/extensions.json UPDATE package.json UPDATE nx.json UPDATE .gitignore CREATE apps/helper-website/index.d.ts CREATE apps/helper-website/next-env.d.ts CREATE apps/helper-website/next.config.js CREATE apps/helper-website/public/.gitkeep CREATE apps/helper-website/public/favicon.ico CREATE apps/helper-website/specs/index.spec.tsx CREATE apps/helper-website/tsconfig.json CREATE apps/helper-website/src/app/api/hello/route.ts CREATE apps/helper-website/src/app/global.css CREATE apps/helper-website/src/app/page.tsx CREATE apps/helper-website/src/app/layout.tsx CREATE apps/helper-website/project.json CREATE apps/helper-website-e2e/project.json CREATE apps/helper-website-e2e/playwright.config.ts CREATE apps/helper-website-e2e/src/example.spec.ts CREATE apps/helper-website-e2e/tsconfig.json CREATE eslint.config.js CREATE apps/helper-website-e2e/eslint.config.js CREATE jest.preset.js CREATE jest.config.ts CREATE apps/helper-website/jest.config.ts CREATE apps/helper-website/tsconfig.spec.json CREATE apps/helper-website/eslint.config.js CREATE apps/helper-website/postcss.config.js CREATE apps/helper-website/tailwind.config.js Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 182, reused 175, downloaded 0, added 0 Progress: resolved 574, reused 547, downloaded 0, added 0 Progress: resolved 1045, reused 1015, downloaded 0, added 0  WARN  4 deprecated subdependencies found: abab@2.0.6, domexception@4.0.0, glob@7.2.3, inflight@1.0.6 Progress: resolved 1370, reused 1291, downloaded 0, added 0 Packages: +473 -1 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- Progress: resolved 1370, reused 1291, downloaded 0, added 188 Progress: resolved 1370, reused 1291, downloaded 0, added 368 Progress: resolved 1370, reused 1291, downloaded 0, added 469 Progress: resolved 1370, reused 1291, downloaded 0, added 472 Progress: resolved 1370, reused 1291, downloaded 0, added 473 Progress: resolved 1370, reused 1291, downloaded 0, added 473, done dependencies: - @nx/next 20.1.2 + next 14.2.16 (15.0.3 is available) + react 18.3.1 + react-dom 18.3.1 devDependencies: + @eslint/compat 1.2.3 + @nx/devkit 20.1.2 + @nx/eslint 20.1.2 + @nx/eslint-plugin 20.1.2 + @nx/jest 20.1.2 + @nx/js 20.1.2 + @nx/next 20.1.2 + @nx/playwright 20.1.2 + @playwright/test 1.49.0 + @swc-node/register 1.9.2 (1.10.9 is available) + @swc/core 1.5.29 (1.9.2 is available) + @swc/helpers 0.5.13 (0.5.15 is available) + @testing-library/react 15.0.6 (16.0.1 is available) + @types/jest 29.5.14 + @types/node 18.16.9 (22.9.1 is available) + @types/react 18.3.1 (18.3.12 is available) + @types/react-dom 18.3.0 (18.3.1 is available) + autoprefixer 10.4.13 (10.4.20 is available) + babel-jest 29.7.0 + eslint 9.15.0 + eslint-config-next 14.2.16 (15.0.3 is available) + eslint-config-prettier 9.1.0 + eslint-plugin-import 2.31.0 + eslint-plugin-jsx-a11y 6.10.1 (6.10.2 is available) + eslint-plugin-playwright 1.8.3 (2.1.0 is available) + eslint-plugin-react 7.35.0 (7.37.2 is available) + eslint-plugin-react-hooks 5.0.0 + jest 29.7.0 + jest-environment-jsdom 29.7.0 + postcss 8.4.38 (8.4.49 is available) + prettier 2.8.8 (3.3.3 is available) + tailwindcss 3.4.3 (3.4.13 is available) + ts-jest 29.2.5 + ts-node 10.9.1 (10.9.2 is available) + tslib 2.8.1 + typescript 5.5.4 (5.6.3 is available) + typescript-eslint 8.15.0  WARN  Issues with peer dependencies found . └─┬ eslint-config-next 14.2.16 ├── ✕ unmet peer eslint@"^7.23.0 || ^8.0.0": found 9.15.0 └─┬ eslint-plugin-react-hooks 5.0.0-canary-7118f5dd7-20230705 └── ✕ unmet peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0": found 9.15.0 Done in 11.7s NX Ensuring Playwright is installed. use --skipInstall to skip installation. NX 👀 View Details of helper-website Run "nx show project helper-website" to view details about this project. NX Generating @nx/workspace:preset NX Cannot create a new project helper-website at apps/helper-website. A project already exists in this directory. Pass --verbose to see the stacktrace. NX Workspace creation failed, see above. Error: Workspace creation failed, see above. at ChildProcess.<anonymous> (C:\Users\chris\AppData\Local\Temp\tmp-20336-DrmIrYKWiDmS\node_modules\.pnpm\@nx+workspace@20.1.2\node_modules\@nx\workspace\src\generators\new\generate-preset.js:39:24) at ChildProcess.emit (node:events:515:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) Couldn't find a runtime tsconfig file at apps/helper-website/tsconfig.app.json to exclude the test files from. If you're using a different filename for your runtime tsconfig, please provide it with the '--runtimeTsconfigFileName' flag. 's' is not recognized as an internal or external command, operable program or batch file.
pnpm 9.13.2
Current Behavior
I am on Windows 10 22H2, using powershell.
When I create a Next.js monorepo with pnpm, the below error shows up.
I found a StackOverflow answer which helped, but I wonder if this is actually good or not. https://stackoverflow.com/a/79145296/26590605
Expected Behavior
Expected behavior is to create the monorepo without any issues.
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace --pm pnpm --verbose
Nx Report
Failure Logs
Package Manager Version
pnpm 9.13.2
Operating System
Additional Information
No response