Skip to content

[bug]: pnpm dev fails when I run it again after closing terminal with "ctrl + c" #8532

@SergiiMarkin

Description

@SergiiMarkin

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I do "pnpm dev", it runs successfully first.
After I close terminal with "ctrl + c", and run "pnpm dev" again, it throws below error.
`@plane/constants:dev: ✔ Build complete in 10002ms
@plane/constants:dev: ℹ Watching for changes in /home/ubuntu/Workstation/Projects/Planner/packages/constants
admin:dev: ✘ [ERROR] Failed to resolve entry for package "@plane/utils". The package may have incorrect main/module/exports specified in its package.json. [plugin externalize-deps]
admin:dev:
admin:dev: ../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1227:27:
admin:dev: 1227 │ let result = await callback({
admin:dev: ╵ ^
admin:dev:
admin:dev: at packageEntryFailure (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:11872:32)
admin:dev: at resolvePackageEntry (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:11869:2)
admin:dev: at tryNodeResolve (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:11772:70)
admin:dev: at resolveByViteResolver (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:36062:13)
admin:dev: at file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:36087:18
admin:dev: at requestCallbacks.on-resolve (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1227:28)
admin:dev: at handleRequest (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:648:17)
admin:dev: at handleIncomingPacket (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:673:7)
admin:dev: at Socket.readFromStdout (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:601:7)
admin:dev: at Socket.emit (node:events:518:28)
admin:dev: at addChunk (node:internal/streams/readable:561:12)
admin:dev: at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
admin:dev: at Readable.push (node:internal/streams/readable:392:5)
admin:dev: at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
admin:dev:
admin:dev: This error came from the "onResolve" callback registered here:
admin:dev:
admin:dev: ../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1151:20:
admin:dev: 1151 │ let promise = setup({
admin:dev: ╵ ^
admin:dev:
admin:dev: at setup (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:36081:13)
admin:dev: at handlePlugins (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1151:21)
admin:dev: at buildOrContextImpl (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:874:5)
admin:dev: at Object.buildOrContext (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:700:5)
admin:dev: at /home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2030:15
admin:dev: at new Promise ()
admin:dev: at Object.build (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2029:25)
admin:dev: at build (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1880:51)
admin:dev: at bundleConfigFile (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:36037:23)
admin:dev: at async bundleAndLoadConfigFile (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:36026:18)
admin:dev: at async loadConfigFromFile (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:35995:42)
admin:dev: at async resolveConfig (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/vite@7.1.11_@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:35646:22)
admin:dev: at async createServer (file:///home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]@types[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/config.js:27952:67)
admin:dev: at async dev (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/@React-router+dev@7.9.5_@react-router[email protected]_react-router@[email protected]_r_543c67c2be6955d31e482497cdbbc4dc/node_modules/@react-router/dev/dist/cli/index.js:2091:16)
admin:dev: at async dev2 (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/@React-router+dev@7.9.5_@react-router[email protected]_react-router@[email protected]_r_543c67c2be6955d31e482497cdbbc4dc/node_modules/@react-router/dev/dist/cli/index.js:2263:3)
admin:dev:
admin:dev: The plugin "externalize-deps" was triggered by this import
admin:dev:
admin:dev: vite.config.ts:6:28:
admin:dev: 6 │ import { joinUrlPath } from "@plane/utils";
admin:dev: ╵ ~~~~~~~~~~~~~~
admin:dev:
admin:dev: failed to load config from /home/ubuntu/Workstation/Projects/Planner/apps/admin/vite.config.ts
admin:dev: Error: Build failed with 1 error:
admin:dev: ../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1227:27: ERROR: [plugin: externalize-deps] Failed to resolve entry for package "@plane/utils". The package may have incorrect main/module/exports specified in its package.json.
admin:dev: at failureErrorWithLog (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1477:15)
admin:dev: at /home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:946:25
admin:dev: at runOnEndCallbacks (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1317:45)
admin:dev: at buildResponseToResult (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:944:7)
admin:dev: at /home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:971:16
admin:dev: at responseCallbacks. (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:623:9)
admin:dev: at handleIncomingPacket (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:678:12)
admin:dev: at Socket.readFromStdout (/home/ubuntu/Workstation/Projects/Planner/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:601:7)
admin:dev: at Socket.emit (node:events:518:28)
admin:dev: at addChunk (node:internal/streams/readable:561:12)
admin:dev: at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
admin:dev: at Readable.push (node:internal/streams/readable:392:5)
admin:dev: at Pipe.onStreamRead (node:internal/stream_base_commons:189:23) {
admin:dev: errors: [Getter/Setter],
admin:dev: warnings: [Getter/Setter]
admin:dev: }
admin:dev:  ELIFECYCLE  Command failed with exit code 1.
admin:dev: ERROR: command finished with error: command (/home/ubuntu/Workstation/Projects/Planner/apps/admin) /home/ubuntu/.nvm/versions/node/v22.17.1/bin/pnpm run dev exited (1)
web:dev:  ELIFECYCLE  Command failed.
space:dev:  ELIFECYCLE  Command failed.
@plane/decorators:dev:  ELIFECYCLE  Command failed.
@plane/hooks:dev:  ELIFECYCLE  Command failed.
@plane/logger:dev:  ELIFECYCLE  Command failed.
@plane/types:dev:  ELIFECYCLE  Command failed.
@plane/constants:dev:  ELIFECYCLE  Command failed.
live:dev: ℹ Using tsdown config: /home/ubuntu/Workstation/Projects/Planner/apps/live/tsdown.config.ts
admin#dev: command (/home/ubuntu/Workstation/Projects/Planner/apps/admin) /home/ubuntu/.nvm/versions/node/v22.17.1/bin/pnpm run dev exited (1)

Tasks: 12 successful, 28 total
Cached: 12 cached, 28 total
Time: 23.613s
Failed: admin#dev

ERROR run failed: command exited (1)
 ELIFECYCLE  Command failed with exit code 1.
`

Steps to reproduce

When I do "pnpm dev", it runs successfully first.
After I close terminal with "ctrl + c", and run "pnpm dev" again, it fails to run.

Environment

Production

Browser

None

Variant

Cloud

Version

tag-1.2.1

Metadata

Metadata

Assignees

Labels

planesync issues to Plane🐛bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions