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

Cannot find module express in the v0.2.0 version #29

Closed
HardSource opened this issue Apr 8, 2024 · 3 comments · Fixed by #32
Closed

Cannot find module express in the v0.2.0 version #29

HardSource opened this issue Apr 8, 2024 · 3 comments · Fixed by #32
Assignees
Labels
bug Something isn't working

Comments

@HardSource
Copy link

HardSource commented Apr 8, 2024

The installation of dependencies seems not to have been installed correctly for version v0.2.0.
When running node index.js the following error is thrown:

node:internal/modules/cjs/loader:1147
  throw err;
  ^

Error: Cannot find module 'express'
Require stack:
- /usr/src/app/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/usr/src/app/index.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/src/app/index.js' ]
}

Node.js v20.10.0
@HardSource HardSource changed the title Cannot find module 'express' in the v0.2.0 version Cannot find module express in the v0.2.0 version Apr 8, 2024
@rally25rs
Copy link
Owner

Good catch, thanks for noticing this.

Sorry it took a while to follow up on this. (Hundreds of GitHub notifications a day between open source projects and my day-job, so this one slipped under the radar...)

It looks like in the upgrade from yarn v1 to v4 I forgot to account for it using yarn PnP now.

@rally25rs rally25rs self-assigned this Apr 19, 2024
@rally25rs rally25rs added the bug Something isn't working label Apr 19, 2024
rally25rs added a commit that referenced this issue Apr 19, 2024
rally25rs added a commit that referenced this issue Apr 19, 2024
@rally25rs
Copy link
Owner

✅ This is now fixed and new images published to DockerHub as version 0.2.1

@HardSource
Copy link
Author

Thank you very much @rally25rs 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants