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

npm run dev does not work with docker #9392

Closed
chualuoi opened this issue Dec 22, 2022 · 1 comment
Closed

npm run dev does not work with docker #9392

chualuoi opened this issue Dec 22, 2022 · 1 comment
Labels
🛠️Dev Development of Misskey itself

Comments

@chualuoi
Copy link

💡 Summary

🥰 Expected Behavior

Able to use docker for development by running npm run dev

🤬 Actual Behavior

Getting error message

Cannot find module '/misskey/packages/backend/built/index.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

📝 Steps to Reproduce

  1. Change Dockerfile CMD from ["npm", "run", "migrateandstart"] to ["npm", "run", "dev"]
  2. Build and launch as guided in https://misskey-hub.net/en/docs/install/docker.html

Note: Misskey can start sucessfully with CMD ["npm", "run", "migrateandstart"].

📌 Environment

Misskey version: 12.119.2
Your OS: Debian
Your browser:

@chualuoi chualuoi added the ⚠️bug? This might be a bug label Dec 22, 2022
@KisaragiEffective KisaragiEffective added 🛠️Dev Development of Misskey itself and removed ⚠️bug? This might be a bug labels Jul 18, 2024
@KisaragiEffective
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️Dev Development of Misskey itself
Projects
None yet
Development

No branches or pull requests

2 participants