└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # BackEnd-Bugs🪲 2 | 3 | ## Table Of Content: 4 | 5 | - ### [Node.js](#nodejs-bugs) 6 | 7 | - ### [Mongod And Mongodb Compass Bugs](#mongod-and-mongodb-compass-bugs) 8 | 9 | - ### [Postman](#postman-bugs) 10 | 11 | - ### [Unanswered Bugs](#unanswered-bugs) ☹️ 12 | 13 | - ### [Contribution](#contribution--1) 🤗 14 | 15 | ## Node.js Bugs: 16 | 17 |
18 | 19 | Error [ERR_MODULE_NOT_FOUND]: Cannot find module in JS 20 | 21 | 22 | 23 | when you set the "type" attribute to "module" in your package. json file: 24 | ### Issue: 25 | The file extension is required when importing. 26 | 27 | ### Solution: 28 | Use the correct file extension when importing. 29 | 30 | #### Incorrect: 31 | ```javascript 32 | import { sum } from './another-file'; 33 | ``` 34 | 35 | #### Correct: 36 | ```javascript 37 | import { sum } from './another-file.js'; 38 | ``` 39 | 40 |
41 | 42 | 43 | ## Mongod And Mongodb Compass Bugs: 44 | 45 |
46 | 47 | 48 | Connection Error!! 49 | 50 | ![WhatsApp Image 2023-11-22 at 10 40 08 PM](https://github.com/EmanMohamed36/BackEnd-Bugs/assets/74449080/8cb4ef73-c407-4719-999e-a78d998d34ff) 51 | 52 | 53 | 54 | ### Windows: 55 | - Press the Windows + R 56 | - Type `services.msc` and hit Enter 57 | - Search `MongoDB.exe`, right-click on it, and select Start 58 | 59 | ### Ubuntu: 60 | 61 | - Make sure `mongod` is running successfully: `mongod` 62 | - Start `mongod` and make it active: 63 | ```bash 64 | sudo systemctl start mongod 65 | ```` 66 |
67 | 68 |
69 | 70 | IN UBUNTU : White Board in Mongodb Compass 71 | 72 | 73 | ### Issue: 74 | The problem is with the MongoDB Compass version. 75 | 76 | ### Solution: 77 | 78 | ```bash 79 | wget https://downloads.mongodb.com/compass/mongodb-compass_1.39.3_amd64.deb 80 | ``` 81 | 82 | ```bash 83 | sudo dpkg -i mongodb-compass_1.39.3_amd64.deb 84 | ``` 85 | 86 | ```bash 87 | mongodb-compass 88 | ``` 89 | 90 |
91 |
92 | 93 | IN UBUNTU: When Using Transaction Operation And Not run 94 | 95 | ![WhatsApp Image 2023-11-21 at 6 30 51 PM (1)](https://github.com/EmanMohamed36/BackEnd-Bugs/assets/74449080/b41d5cc0-4f09-496a-ad4a-10dbdbe08ab9) 96 | 97 | 98 | 99 | 100 | 101 | ### Solution: 102 | 103 | ```bash 104 | sudo apt-get install libkrb5-dev 105 | ``` 106 | ```bash 107 | npm install run-rs -g 108 | ``` 109 | ```bash 110 | sudo systemctl stop mongod 111 | ``` 112 | ```bash 113 | run-rs -v 4.0.0 --shell 114 | ``` 115 | 116 |
117 | 118 | 119 | ## Postman Bugs: 120 | 121 | ## Unanswered Bugs: 122 | 123 | ## Contribution : 124 | 125 | - ### If You Have a Bug 🪲 :- Make new Issue And We Will Response It 126 | - ### If You Have an answer for Unanswered Bug :- Make Pull Request To View And Push Your Solve 💪 127 | - ### Link Issue :https://github.com/EmanMohamed36/BackEnd-Bugs/issues/1 a brief guide to share your bugs with us 🤗 128 | --------------------------------------------------------------------------------