Runtime Error Object(...) is not a function - ionic v5 - ionic-framework

Runtime Error
Object(...) is not a function
Stack
TypeError: Object(...) is not a function
at Object.<anonymous> (http://localhost:8100/build/vendor.js:93957:80)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at 217 (http://localhost:8100/build/main.js:3498:87)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at 19 (http://localhost:8100/build/main.js:2610:110)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at 317 (http://localhost:8100/build/main.js:5071:96)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at 216 (http://localhost:8100/build/main.js:3260:94)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
rxjs versions are as follows,
"rxjs": "^6.6.7",
"rxjs-compat": "^6.5.5",
how to fix this issue
i think this issue is related to version mismatch

Related

How do I resolve a MongooseServerSelectionError?

When I run my code, which should connect my database to my node server, nothing works out.
Here is the output I recieve.
Server is running on port: 5000
(node:1628) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster.
One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
at NativeConnection.Connection.openUri (C:\Users\aharn\Documents\EXERCISE-TRACKER\mern-exercise-tracker\backend\node_modules\mongoose\lib\connection.js:830:32)
at Mongoose.connect (C:\Users\aharn\Documents\EXERCISE-TRACKER\mern-exercise-tracker\backend\node_modules\mongoose\lib\index.js:335:15)
at Object.<anonymous> (C:\Users\aharn\Documents\EXERCISE-TRACKER\mern-exercise-tracker\backend\server.js:16:10)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
(node:1628) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1628) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I"m getting an error while trying to run my DB

UnhandledPromiseRejectionWarning: MongoParseError: Invalid connection string
at parseConnectionString (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongodb-core\lib\uri_parser.js:505:21)
at connect (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\node_modules\mongodb\lib\operations\mongo_client_ops.js:195:3)
at connectOp (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\node_modules\mongodb\lib\operations\mongo_client_ops.js:284:3)
at executeOperation (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\node_modules\mongodb\lib\utils.js:416:24)
at MongoClient.connect (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\node_modules\mongodb\lib\mongo_client.js:175:10)
at Promise (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\lib\connection.js:612:12)
at new Promise (<anonymous>)
at NativeConnection.Connection.openUri (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\lib\connection.js:609:19)
at Mongoose.connect (C:\Users\We'regonnalose\Desktop\newDB\node_modules\mongoose\lib\index.js:321:15)
at Object.<anonymous> (C:\Users\We'regonnalose\Desktop\newDB\app.js:3:10)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
(node:4716) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:4716) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
const mongoose=require('mongoose');
mongoose.connect('mongdb://localhost:27017/shopDB', {useNewUrlParser:true});
You have a typo in the connection string:
mongdb://localhost:27017/shopDB
it should be mongodb instead of mongdb as the protocol
mongodb://localhost:27017/shopDB

unable to access json server

I created a mock json server and trying to open in browser ,landing in the following error:
events.js:167
throw er; // Unhandled 'error' event
^
Error: listen EACCES 127.0.0.1:8000
at Server.setupListenHandle [as _listen2] (net.js:1313:19)
at listenInCluster (net.js:1378:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1491:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:55:10)
Emitted 'error' event at:
at emitErrorNT (net.js:1357:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
Please help.

Chrome Remote Interface Error: Unknown command: protocol

I was trying to use chrome-remote-interface sample in windows, but unable to produce the result with an error
Error: Unknown command: protocol
at IncomingMessage.<anonymous> (..\node_modules\chrome-remote-interface\lib\external-request.js:29:30)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1059:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
This is the specs of my machine :
Google Chrome Version 66.0.3359.181 (Official Build) (64-bit)
Windows 10

ionic 2 Not able to download ios build from ionic.io

I run below command
1 ionic package build ios --profile appname
2 ionic package info build_id(12)
Caught exception:
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at Request._callback (C:\Users\CakeDev\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\package.js:117:27)
at Request.self.callback (C:\Users\CakeDev\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\request\request.js:373:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (C:\Users\CakeDev\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\request\request.js:1318:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (C:\Users\CakeDev\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\request\request.js:1266:12)
at emitNone (events.js:91:20)