nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

Unable to locate 'esbuild-linux-64' package and issues releasing .output folder independently

Open vanling opened this issue 1 year ago • 2 comments

I previously raised an issue at https://github.com/vue-email/nuxt/issues/11 and subsequently closed it, believing the problem originated from my deployment method via Jenkins. However, I now suspect there might indeed be an error.

15|*****-nl-website  | Error loading component Error: The package "esbuild-linux-64" could not be found, and is needed by esbuild.
15|*****-nl-website  | If you are installing esbuild with npm, make sure that you don't specify the
15|*****-nl-website  | "--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
15|*****-nl-website  | of "package.json" is used by esbuild to install the correct binary executable
15|*****-nl-website  | for your current platform.
15|**** |     at generateBinPath (/home/****/****.nl/releases/frontend/release-****/server/node_modules/esbuild/lib/main.js:1819:15)
15|**** |     at esbuildCommandAndArgs (/home/****/****.nl/releases/frontend/release-****/server/node_modules/esbuild/lib/main.js:1886:33)
15|**** |     at ensureServiceIsRunning (/home/****/****.nl/releases/frontend/release-****/server/node_modules/esbuild/lib/main.js:2051:25)
15|**** |     at startSyncServiceWorker (/home/****/****.nl/releases/frontend/release-****/server/node_modules/esbuild/lib/main.js:2261:19)
15|**** |     at Object.<anonymous> (/home/****/****.nl/releases/frontend/release-****/server/node_modules/esbuild/lib/main.js:2302:3)
15|**** |     at Module._compile (node:internal/modules/cjs/loader:1241:14)
15|**** |     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
15|**** |     at Module.load (node:internal/modules/cjs/loader:1091:32)
15|**** |     at Module._load (node:internal/modules/cjs/loader:938:12)
15|**** |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)

I am executing the build on the server and subsequently relocating the .output folder. My understanding is that this should be a feasible deployment method for Nuxt, meaning the initial node_modules should not be necessary, correct? Ideally, everything required should be contained within the build's .output.

My apologies for directly addressing you here, @danielroe. In this domain, you possess the magic wizard expertise, and I would greatly appreciate your insights on whether my approach is flawed.

Reproduction Steps:

  • Install Nuxt, configure vue-mail.
  • Execute npm run build, then either move the .output folder or delete node_modules.
  • Attempt to render an email template.

vanling avatar Jan 11 '24 20:01 vanling