-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from opengovsg/release-v4.31.0
feat: merge release v4.31.0 into master branch
- Loading branch information
Showing
20 changed files
with
364 additions
and
464 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Troubleshooting issues on local development | ||
|
||
A list of common issues that developers face and how to resolve them. | ||
|
||
## `Error: Module did not self-register.` | ||
|
||
This could happen if node modules were compiled with a different version of node, or if node modules fail to compile due to other configuration errors. | ||
|
||
### [Configuration Errors](https://stackoverflow.com/questions/21656420/failed-to-load-c-bson-extension) | ||
|
||
Some modules such as `node-gyp` require Python 2.x and if your system's Python points to 3.x, it will fail to compile bson, without warning. Fix this by setting Python 2.x to be the default on your system or ensuring that the Python global key in your npm config points to the 2.x executable on your system. | ||
|
||
### [Node Versioning Error](https://stackoverflow.com/questions/28486891/uncaught-error-module-did-not-self-register) | ||
|
||
Run the following commands to set the node version and then re-install the node modules: | ||
|
||
``` | ||
nvm use 12.18.0 | ||
rm -r node_modules | ||
npm install | ||
``` | ||
|
||
## JavaScript out of memory error | ||
On your Docker application, go to Preferences > Resources and increase the amount of memory allocated for Docker. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// This file is used to instantiate `@shelf/jest-db`'s setup. | ||
module.exports = { | ||
mongodbMemoryServerOptions: { | ||
binary: { | ||
version: process.env.MONGO_BINARY_VERSION || '3.6.12', | ||
checkMD5: true, | ||
}, | ||
instance: { | ||
dbName: 'jest', | ||
}, | ||
instance: {}, | ||
autoStart: false, | ||
}, | ||
} |
This file contains 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
Oops, something went wrong.