S
SolidJS16mo ago
Aspy

Cannot build on server

I have a server (debian bookworm) and my local PC (Arch) My site (https://github.com/someaspy/duckduckno.com) cannot build on my server, but can build locally. I get the error
> vite build "-v"

node:internal/modules/esm/resolve:188
const resolvedOption = FSLegacyMainResolve(packageJsonUrlString, packageConfig.main, baseStringified);
^

Error: Cannot find package '/home/aiden/web/DuckDuckNo/node_modules/.pnpm/[email protected]/node_modules/esbuild/package.json' imported from /home/aiden/web/DuckDuckNo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/cli.js
at legacyMainResolve (node:internal/modules/esm/resolve:188:26)
at packageResolve (node:internal/modules/esm/resolve:769:14)
at moduleResolve (node:internal/modules/esm/resolve:831:20)
at defaultResolve (node:internal/modules/esm/resolve:1036:11)
at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.5.1
 ELIFECYCLE  Command failed with exit code 1.
> vite build "-v"

node:internal/modules/esm/resolve:188
const resolvedOption = FSLegacyMainResolve(packageJsonUrlString, packageConfig.main, baseStringified);
^

Error: Cannot find package '/home/aiden/web/DuckDuckNo/node_modules/.pnpm/[email protected]/node_modules/esbuild/package.json' imported from /home/aiden/web/DuckDuckNo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/cli.js
at legacyMainResolve (node:internal/modules/esm/resolve:188:26)
at packageResolve (node:internal/modules/esm/resolve:769:14)
at moduleResolve (node:internal/modules/esm/resolve:831:20)
at defaultResolve (node:internal/modules/esm/resolve:1036:11)
at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.5.1
 ELIFECYCLE  Command failed with exit code 1.
I've tried recloning the entire repo and installing packages again, but I cannot get it to build on my server. the development environments are basically the same as far as I can tell. Any help is appreciated
GitHub
GitHub - SomeAspy/DuckDuckNo: Repository for the domain duckduckno.com
Repository for the domain duckduckno.com. Contribute to SomeAspy/DuckDuckNo development by creating an account on GitHub.
No description
4 Replies
Aspy
AspyOP16mo ago
this appears to be a PNPM issue, I will forward this to the PNPM devs
No description
shogun2077
shogun207716mo ago
Is this only a PNPM issue? Does it work on Yarn?
Aspy
AspyOP16mo ago
I haven't tested on yarn, I've never used it
shogun2077
shogun207716mo ago
Oh ok
Want results from more Discord servers?
Add your server