-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Describe the bug
When running the project for the first time, the server crashes with a ReferenceError because the 'cors' and 'helmet' packages are not defined.
To Reproduce
- Clone the repository.
- Run 'npm install'.
- Run 'npm run dev' to start the server.
Expected behavior
The server should start successfully without any errors.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Chrome
- 11
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
The error can be fixed by adding the following lines to index.js: const cors = require('cors'); const helmet = require('helmet');
Metadata
Metadata
Assignees
Labels
No labels