469,945 questions
-3
votes
0
answers
69
views
Almostnode implementation cannot resolve dynamic file paths when rendering in iframe
I am currently working on a project where I want to run GitHub-hosted projects directly in the browser. I was previously exploring nodepod and came across almostnode, so I wanted to give it a try.
I ...
0
votes
0
answers
58
views
How do I monitor multiple WebSocket feeds concurrently in Node.js without blocking
I'm building a Node.js trading bot that needs to monitor multiple WebSocket feeds simultaneously (BTC, ETH, SOL, and XRP).
What's the recommended approach for handling multiple real-time streams ...
0
votes
0
answers
39
views
Docusaurus build failing with Css Minimizer plugin error after upgrading to Node 20
I recently upgraded my Docusaurus documentation website (Algo) to v3.5.2 and shifted my local development environment over to Node.js 20. However, every time I attempt to run a production build using ...
Best practices
0
votes
2
replies
129
views
Passing mysql2 createPool to different functions as an argument
Just wanted to know if there are any issues with passing the mysql2.createPool(options) to another function as an argument instead of ending and reopening the pool multiple times
Desired Result:
I ...
-1
votes
1
answer
78
views
Getting the Preview URL of a Dynamically Created Docker Container [closed]
I am building a vibe-coding platform similar to Bolt and Lovable. My workflow is:
Generate code using AI.
Write the generated files to a temporary directory.
Build a Docker image from that ...
Tooling
1
vote
1
replies
73
views
How should I divide development tasks between Replit Agent and ChatGPT for a Node.js telephony application?
I am developing a Node.js-based telephony and call-intelligence prototype. I plan to use Replit Agent for repository-level implementation and ChatGPT for architecture review, debugging, test design, ...
1
vote
1
answer
82
views
How to handle foreign key constraint error when deleting a user in Prisma (one-to-many relation)?
I'm building an Express + Prisma API for a blog system.
I have a User model and a Post model with a one-to-many relationship (one user can have many posts).
When I try to delete a user using:
await ...
Advice
0
votes
1
replies
221
views
Problem installing Playwright to my project
When I install Playwright the installation reaches 100% but never proceeds
$ npx playwright install
Removing unused browser at C:\Users\public\AppData\Local\ms-playwright\chromium-1208
Downloading ...
Advice
2
votes
5
replies
93
views
Why doesn't it use all available RAM?
I understand that Node.js applications are often scaled using multiple processes, containers, or servers.
However, I'm trying to understand the reasoning behind the default V8 heap limits.
For example,...
-2
votes
1
answer
81
views
Checking menu items fails in Electron
The code example below for a main.js Electron file successfully changes the item label of the one item in menu Menu upon item click, but not its checked status when run in Electron Fiddle. As can be ...
Best practices
1
vote
2
replies
52
views
Should I keep separate DAO methods for entity listing and lookup search, or merge them with flags in TypeORM?
I working as a backend developer in Node.js with TypeScript and TypeORM, and I'm trying to decide on the best repository/DAO design.
I have a TPA entity and currently two separate DAO methods:
1. ...
Tooling
0
votes
2
replies
100
views
`uv run` for `node script.js`?
I always run my Python scripts this way, as I usually need to run small snippets of code for various tools: (https://docs.astral.sh/uv/guides/scripts/#using-a-shebang-to-create-an-executable-file)
#!/...
-1
votes
0
answers
123
views
Getting directory listing for sub-pages of static site built with nextjs [duplicate]
I am testing nextjs as an alternative to gatsbyjs, which I've been using to run a site for a few years. Everything works fine with npm run dev, but with npm run build I get the expected out directory, ...
Tooling
2
votes
9
replies
195
views
Are there Alternatives to Bun that weren't written with AI assistance?
I'm philosophically anti AI, and recently found out that Bun was rewritten with AI. I don't want to use any tool that was written with AI assistance.
I have been using Bun for a CLI that reads and ...
Advice
0
votes
8
replies
123
views
How do I undo the most recent commits in render?
I have the following JSON-file of an audit:
Full public audit
{
"receipt_type": "LEGACY_PROOF_REMOVAL_AUDIT_586_EXPANDED_SCREEN_JSON",
"workspace": "Joe Brown's ...