Category "node.js"

Angular Node - require not being used

In my Angular 13.x / Typescript 4.x project I have a reference to a node_module @types\prosemirror-schema-list In it the code uses require : I added import Ord

Calling python script and returning results synchronously in Node.js

I'm currently implementing a program to scrape the web for tables. I'm using python-shell to call a python script in Node. Unfortunately, python-shell runs asyc

require() of ES modules not supported

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: D:\...\node_modules\normalize-url\index.js [0] require() of ES modules is not supported. [0] require

How to connect NodeJS and Java?

I need for my Node application to be able to send and recieve data to/from an already running Java app or to launch Java app from Node. So, is there a way to se

Neo4J - How to query a graph and get the result as a tree with duplicates?

I`m working on a prototype of a community and have 4 nodes that are related as the image below. sample data: MERGE (a:User{key: 1}) MERGE (b:Tags{key: 2}) MERG

How to extract attachements from a PDF in nodejs

I have limited knowledge in handling PDF:s and I need to extract an attached file from a PDF.

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

How to use a class as a type in a variable with typescript?

I'm bit confused in how to use OOP in typescript. I'm used to do it with PHP. 1 - Can I use a class as a type without having to fill all attributes values? 2 -

Save react-pdf rendered file to state for sending it to server?

im using react-pdf library i managed to save file localy but now i would also need to save it on server since i am required to do a history display of all the f

Problems uploading a model in autodesk forge data visualization

[email protected] dev > concurrently --kill-others "npm run watch" "npm run start" "nodemon server/localserver.js -- delay 300m

mobile devices are not rending components created by Array.map() function, but it does render perfectly on laptops and desktops

I'm new to React and I hope somebody helps me understand how to solve this problem. In my code below I'm retrieving product data from AliExpress's Dropshipping

Error [ERR_REQUIRE_ESM] - Husky, lint-staged, eslint - nodeJS:

although there were other questions about this, most were left without a response or the response given did not work for me. For what it gives apparently eslint

How to find documents based on the result of a function mongoose

So I have two schemas user and driver they both have latitude and longitude attributes. At some point I want to query the database for nearby drivers, I will be

How to check if a message author has a role?

I am trying to code a bot for a game idea my friends and I have. The command I'm working on is the score adjuster. Obviously though, I only want moderators to h

How to create relationship between two tables using feathersjs, sequelize and postgresql

I have two models users.model.js and swing-trades.model.js when I am creating a relationship between these two models and running feathersjs using npm run dev`,

Command failed with exit code 134: npm run generate

I'm trying to deploy my nuxt js project to netlify. The installation part works fine, But it returns an error in the build process. I tried to search google but

Upload speed testing function behaves differently when I call it from electron GUI

I've wrote a simple function to measure the upload speed of my network, which when run inside vscode terminal behaves just fine and displays the expected result

NextJS with Serverless Mysql ServersideProps - fs error

I'm trying to build an app in nextjs and I've stumbled upon some issues. I'd like to do a query call inside my getServerSideProps() but I get the error: error -

Mongoose.connect is not connecting to local db

I'm building a simple MERN blogging app with a local MongoDB. Everything was working fine until yesterday. I literally changed nothing at all and now I can't co

I am making a website using django and tailwind css. But in Cpanel I am getting this command error of Node Js path. Any suggestions what I can do?

CommandError: It looks like node.js and/or npm is not installed or cannot be found. Visit https://nodejs.org to download and install node.js for your system. If