nuxt4 build error: Cannot start service: Host version "0.25.8" does not match binary version "0.25.12"

#20 · open · 1 comments

View on GitHub ↗

wodepig

https://github.com/[wodepig/nuxt-exe-error](https://github.com/wodepig/nuxt-exe-error) 1. pnpm i 2. pnpm build 3. err log: ``` X [ERROR] Cannot start service: Host version "0.25.8" does not match binary version "0.25.12" 1 error Error: The service was stopped at file:///E:/wsProject/study/nuxt-app/node_modules/@jesterkit/exe-nuxt/dist/index.js:1262:27 at responseCallbacks.<computed> (file:///E:/wsProject/study/nuxt-app/node_modules/@jesterkit/exe-nuxt/dist/index.js:911:11) at Socket.afterClose (file:///E:/wsProject/study/nuxt-app/node_modules/@jesterkit/exe-nuxt/dist/index.js:901:30) at Socket.emit (node:events:520:35) at endReadableNT (node:internal/streams/readable:1701:12) at process.processTicksAndRejections (node:internal/process/task_queues:89:21)  ELIFECYCLE  Command failed with exit code 1. ``` package.json: ``` { "name": "nuxt-app", "type": "module", "private": true, "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare", "postbuild": "exe-nuxt" }, "dependencies": { "@jesterkit/exe-nuxt": "^0.1.3", "nuxt": "^4.3.1", "vue": "^3.5.28", "vue-router": "^4.6.4" }, "overrides": { "@jesterkit/exe-nuxt>esbuild": "0.21.5" } } ```

Comments

Sheryoo

this is a common esbuild issue you can simply remove node_modules and the lock file the install the packages again and it will work fine 1. run this command to remove them: - `rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml` 2. install the packages again based on the package manager you are using : - npm: npm install - Yarn: yarn install - pnpm: pnpm install