Categories
Mastering Development

Node, Express API App on Azure giving Container Start Failure error

I have an existing Node and Express API application which I am trying to deploy to Azure WebApps. Deployment goes fine. But when I try to access the APIs, nothing happens. When I check log, I see following: "Container chdemoapi_0_f2df43ac didn’t respond to HTTP pings on port: 8080, failing site start""Container chdemoapi_0_4e583132 didn’t respond to HTTP […]

Categories
Mastering Development

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of laun

Hi I just followed up the code from Udemy class but I got a problem when I opened Heroku. I am a newbie here I hope anybody can help me out Index.js const express = require(‘express’); const app = express(); app.get(‘/’, (req, res) => { res.send({ hi: ‘there’ }); }); const PORT = process.env.PORT || […]

Categories
Mastering Development

reactjs application – can’t get my hello world to show up

Background / Problem I’m trying to build understand my first react/webpack/nodejs app. I am able to build / launch it by opening a browser and navigating to http://localhost:3333/ , but the hello world message I’m expecting is not showing. Instead I think it’s trying to give me a directory listing of a folder…? Not too […]

Categories
Mastering Development

Navigation does not open in Cordova Angular App after using Hardware Back Button

We have a Webhosted Angular App that we load in a Cordova App and encounter a problem with navigation (nav-Element with *ngIf) after using the Android Back Button. For example: Case 1: Use buttons and links for navigation in app Use a back link within the Angular application to go back to the Home Screen […]

Categories
Mastering Development

How to fix Next.js Vercel deployment module not found error

My next.js app works on my machine and was working when deployed on Vercel but now it fails when building on Vercel with the following error: I’ve tried deleting node_modules and running npm install a few times but with no joy. Any help would be hugely appreciated. Thank you! Analyzing source code… 21:30:52.642 Installing build […]

Categories
Mastering Development

Keep getting stuck while setting up npm on windows

I am currently working my way through a course on UDEMY and we’re setting up nodejs and npm. I have started over from scratch 4 times now and I keep getting stuck at the same point. I will try and explain to the best of my abilities but I’m still learning so I hope I […]

Categories
Mastering Development

Using Node.js to generate dynamic word document using Database value

I am trying to dynamically populate the WORD Document using npm docx. I am trying to read the data from the SQLite database but due to async node js property the values are not getting into the variable and it shows undefined. If I make the function synchronous the npm docx throws error and doesn’t […]

Categories
Mastering Development

can’t run “npm start”

this is my package.json file: { “name”: “martina”, “version”: “1.0.0”, “description”: “d”, “main”: “index.js”, “scripts”: { “start”: “node index.js”, “test”: “echo \”Error: no test specified\” && exit 1″ }, “repository”: { “type”: “git”, “url”: “d” }, “author”: “”, “license”: “ISC” } what should I do? I have a Mac by the way! EDIT: I did […]

Categories
Mastering Development

How to use “import” in Node.js?

I tried to deploy my project developed using React and Node.js to Heroku, but after issuing git push heroku master, I got an error: 2020-06-05T02:12:18.092681+00:00 app[web.1]: import express from “express”; 2020-06-05T02:12:18.092682+00:00 app[web.1]: ^^^^^^^ 2020-06-05T02:12:18.092682+00:00 app[web.1]: 2020-06-05T02:12:18.092683+00:00 app[web.1]: SyntaxError: Unexpected identifier 2020-06-05T02:12:18.092683+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:718:23) I googled and it is said that Node.js doesn’t support […]

Categories
Mastering Development

Handpose tfjs Error – No backend found in registry

When trying to run a demo project for Handpose tfjs, I get the below error. My package.json file has below dependencies: { “name”: “tensorflowJs”, “version”: “1.0.0”, “description”: “”, “main”: “index.js”, “scripts”: { “watch”: “cross-env NODE_ENV=development parcel index.html –no-hmr “, “build”: “cross-env NODE_ENV=production parcel build index.html –public-url ./” }, “browser”: { “crypto”: false }, “keywords”: [], […]