Categories
Mastering Development

My react app on heroku opens home page but will not open other pages

My react app runs fine locally, and deploys to heroku. However, from the home page, any link to another page shows a blank page with ‘not found’ on it. There are no other error messages. Here is my server-side package.json file: { “name”: “portfolio-generator”, “version”: “1.0.0”, “description”: “”, “main”: “server.js”, “engines”: { “node”: “12.16.x” }, […]

Categories
Mastering Development

How to fix: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js

I am trying to run a typescript express.js in a docker container. After running the docker I get the following error: > ts-node-dev src/app.ts Using ts-node version 8.10.1, typescript version 3.9.2 TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js at Object.watch (fs.js:1441:11) at add […]

Categories
Mastering Development

Use Application Insights with on-premises Node.js application

I am currently trying to set up Application Insights for an on-premises node.js backend. According to the documentation it should be possible. Application Insights can gather telemetry data from any internet-connected application, whether or not it’s running on-premises or in the cloud. Use the following steps to start viewing this data. I found a couple […]

Categories
Mastering Development

Two different Heroku builds trying to build the same package, but one is getting an error. Am confused

I am working on two different discord bots and deploying them to two different Heroku applications, both apps are on Heroku 18-stack, and have the same build-packs but one gives me an error. Am using node.js This is the package.json { “name”: “amadeus-bot”, “version”: “1.0.0”, “description”: “”, “main”: “index.js”, “scripts”: { “start”: “node index.js” }, […]

Categories
Mastering Development

nodemon stuck on “[nodemon] restarting due to changes…” on Docker

please help me here, I am facing this problem and CAN’T figure out. After I run docker compose-up, nodemon start to monitoring normally, after changes, it gets stuck in [nodemon] restarting due to changes… and nothing else happens after that. What I tried so far was: Use –legacy flag Reset and Reinstall Docker Use an […]

Categories
Mastering Development

HLF network closed for unknown reason causes Gateway to fail

This is the exception I see: Exception in thread “main” org.hyperledger.fabric.gateway.GatewayRuntimeException: org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel isprintchannel failed with peer peer1.org1.isprint.com. Status FAILURE, details: Channel Channel{id: 1, name: isprintchannel} Sending proposal with transaction: 31101a32ee94cdb3ec65abaca86f0cf828d6b48cd4453257cd7270f94d192b93 to Peer{ id: 2, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpc://127.0.0.1:7051, mspid: Org1MSP} failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Network closed for […]

Categories
Mastering Development

ERROR in Entry module not found: Error: Can’t resolve ‘index.js’ in ‘C:\Users\dell\Desktop\projet_folder_js’

I am facing path issue and not understanding it package.json file { “name”: “projet_folder_js”, “version”: “1.0.0”, “description”: “”, “main”: “index.js”, “scripts”: { “dev”: “webpack” }, “author”: “”, “license”: “ISC”, “devDependencies”: { “webpack”: “^4.43.0”, “webpack-cli”: “^3.3.11” } } webpack.config.js file const path = require(“path”); module.exports = { entry: “index.js”, output: { path: path.resolve(__dirname), filename: “output.js”, }, […]

Categories
Mastering Development

Error: The specified module could not be found. \\?\C:\Program Files\nodejs\tf\node_modules\@tensorflow\tfjs-node\lib\napi-v5\tf js_binding.node

I am getting an error when importing ‘@tensorflow/tfjs-node’ module. My problem is similar to that mentioned in Cannot import @tensorflow/tfjs-node in nodejs TensorFlow.js version- 1.7.3 Platform informations: Windows 8.1 Python 2.7.12 npm 6.14.4 node 10.20.1 Package.json is as follows: { “name”: “tf”, “version”: “1.0.0”, “description”: “”, “main”: “index.js”, “scripts”: { “test”: “echo \”Error: no test […]

Categories
Mastering Development

Hyperledger Fabric 2.0.1: Error: Failed to connect before the deadline on Discoverer- name:

I think Fabric is trying to discover peers and orderers as soon as they come to realize they do exist but not matching the machine IP address. Is there a way to specify the machine IP override for TLS enabled communication? This is the full log 2020-04-25T02:52:32.615Z – error: [ServiceEndpoint]: Error: Failed to connect before […]

Categories
Mastering Development

Heroku – Cant find main server module file

I am trying to deploy a simple Express/Node backend to Heroku, however it keep giving me the error that it cant find my main server module, “can’t find module server.js”, but it is right there in the root directory. My main server file: const express = require(“express”); const connectDB = require(“./config/db”);`enter code here` const app […]