mongo-hacker
mongo-hacker copied to clipboard
Error when using mongosh: ReferenceError: _isWindows is not defined
Error when using mongosh.
Expected behavior
Actual/current behavior
Steps to reproduce the actual/current behavior
- First, I copied my .mongorc.js to .mongoshrc.js
- Then, ran mongosh
mongosh --port 44442 Current Mongosh Log ID: 6087de4190ea0957915c5197 Connecting to: mongodb://127.0.0.1:44442/?directConnection=true&serverSelectionTimeoutMS=2000 Using MongoDB: 4.4.4 Using Mongosh Beta: 0.12.0 For mongosh info see: https://docs.mongodb.com/mongodb-shell/
The server generated these startup warnings when booting: 2021-04-19T19:14:21.652+03:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted 2021-04-19T19:14:21.652+03:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning 2021-04-19T19:14:21.652+03:00: Soft rlimits too low
Mongo-Hacker 0.1.1 ReferenceError: _isWindows is not defined replset [direct: primary]> exit ericsommer@~> grep _isWindows .mongoshrc.js if (_isWindows() && mongo_hacker_config['windows_warning']) { if (_isWindows()) {
Environment
| Software | Version |
|---|---|
| Mongo Hacker | Mongo-Hacker 0.1.1 |
mongo shell |
Mongosh Beta: 0.12.0 |
| MongoDB server | MongoDB: 4.4.4 |
| Operating system | MacOS Catalina 10.15.7 |
Hi Is there any update in this thread? I face the same problem.