Skip to content

Commit f65cceb

Browse files
authored
Update DEVELOPMENT.md
1 parent 9005409 commit f65cceb

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

DEVELOPMENT.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,21 @@ location /api {
2525
proxy_pass http://localhost:3002;
2626
}
2727
```
28+
29+
## Troubleshooting Nginx Error 502 on Website
30+
31+
If you encounter a 502 error, it's likely due to `ccn-coverage-api` and `ccn-coverage-vis` not running. You can check if the servers are running by executing `ps aux | grep node` inside the respective directories. If the server is down, this command will likely only output the grep command.
32+
33+
If you encounter issues with `npm start` in the API, such as the build failing with error messages like `"[ERROR] 19:28:10 Error: models/signal.js: Emit skipped"`, it might be due to redundant JavaScript and TypeScript duplicate files within `ccn-coverage-api`. These duplicates can cause TypeScript to encounter type errors or inconsistencies in the JavaScript files, resulting in compilation errors during the build process.
34+
35+
To resolve this issue, navigate to `ccn-coverage-api/tsconfig.json` and take a look:
36+
37+
```bash
38+
/* JavaScript Support */
39+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJs` option to get errors from these files. */
40+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
41+
```
42+
43+
We suggest either removing the redundant JavaScript files before compiling or setting the `allowJs` and `checkJs` options above to `false` to prevent build issues from occurring in the future.
44+
45+
Once fixed, you can run `npm start &` to run the API and visualization servers in the background, allowing you to exit the servers safely.

0 commit comments

Comments
 (0)