Fix error when trying to run in docker#29
Open
Patrick9263 wants to merge 1 commit intomatthew1232:masterfrom
Open
Fix error when trying to run in docker#29Patrick9263 wants to merge 1 commit intomatthew1232:masterfrom
Patrick9263 wants to merge 1 commit intomatthew1232:masterfrom
Conversation
Would get this error when running in docker because the import is case sensitive:
```
> node index.js
node:internal/modules/cjs/loader:944
throw err;
^
Error: Cannot find module './src/classes/Stockx'
Require stack:
- /usr/src/app/node_modules/stockx-api/index.js
- /usr/src/app/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15)
at Function.Module._load (node:internal/modules/cjs/loader:774:27)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object.<anonymous> (/usr/src/app/node_modules/stockx-api/index.js:1:19)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/src/app/node_modules/stockx-api/index.js',
'/usr/src/app/index.js'
]
}
```
|
Ah was just about to open a PR for this, glad someone got to it. |
|
@matthew1232 Do you know when we might see this released in the official NPM package? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was getting this error when running in docker because the import is case sensitive: