Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work-in-progress #27

Draft
wants to merge 1 commit into
base: dev/frontend
Choose a base branch
from
Draft

Conversation

shawnpetros
Copy link
Collaborator

@shawnpetros shawnpetros commented Dec 10, 2024

for issue #11

currently the vite app does not run in the container due to platform differences and non-existent binaries. I've tried adding the resolutions to package.json to force it, and have tried changing the platform in docker-compose and/or forcing optional dependancies to be installed as a remediation step. Googled a bunch and got stuck, so moving on for now with this as a base to pick up later.

frontend-1  | yarn run v1.22.22
frontend-1  | $ vite --host
frontend-1  | /app/node_modules/rollup/dist/native.js:64
frontend-1  |           throw new Error(
frontend-1  |                 ^
frontend-1  | 
frontend-1  | Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
frontend-1  |     at requireWithFriendlyError (/app/node_modules/rollup/dist/native.js:64:9)
frontend-1  |     at Object.<anonymous> (/app/node_modules/rollup/dist/native.js:73:76)
frontend-1  |     ... 3 lines matching cause stack trace ...
frontend-1  |     at Module._load (node:internal/modules/cjs/loader:1019:12)
frontend-1  |     at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:203:29)
frontend-1  |     at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
frontend-1  |     at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) {
frontend-1  |   [cause]: Error: Cannot find module '@rollup/rollup-linux-x64-gnu'
frontend-1  |   Require stack:
frontend-1  |   - /app/node_modules/rollup/dist/native.js
frontend-1  |       at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
frontend-1  |       at Module._load (node:internal/modules/cjs/loader:981:27)
frontend-1  |       at Module.require (node:internal/modules/cjs/loader:1231:19)
frontend-1  |       at require (node:internal/modules/helpers:177:18)
frontend-1  |       at requireWithFriendlyError (/app/node_modules/rollup/dist/native.js:46:10)
frontend-1  |       at Object.<anonymous> (/app/node_modules/rollup/dist/native.js:73:76)
frontend-1  |       at Module._compile (node:internal/modules/cjs/loader:1364:14)
frontend-1  |       at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
frontend-1  |       at Module.load (node:internal/modules/cjs/loader:1203:32)
frontend-1  |       at Module._load (node:internal/modules/cjs/loader:1019:12) {
frontend-1  |     code: 'MODULE_NOT_FOUND',
frontend-1  |     requireStack: [ '/app/node_modules/rollup/dist/native.js' ]
frontend-1  |   }
frontend-1  | }
frontend-1  | 
frontend-1  | Node.js v18.20.5
frontend-1  | error Command failed with exit code 1.
frontend-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
frontend-1 exited with code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant