Questions tagged [bun]

Bun is a comprehensive JavaScript platform that comes equipped with a built-in bundler, transpiler, task runner, and npm client.

Next.js encountered an error when trying to locate the 'net' module while working with PostgreSQL

I'm facing a challenge in my Next.js project while attempting to retrieve all records from a table. The error message I'm encountering is "Module not found: Can't resolve 'net'" with an import trace pointing to multiple files within my project. Here are th ...

Setting up the VSCode debugger launch.json configuration for Bun and next.js

Discover a helpful guide on setting up VSCode for debugging with Unique software. Check out this page to learn how to configure VSCode for debugging a unique.js app. Is there a way to combine both configurations in launch.json, so I can debug my Unique.j ...

Tips for resolving the eslint error "An error occurred when attempting to load the rule 'react/display-name': [[GeneratorState]] is not found on 'O'"

My current setup involves using eslint in conjunction with nextjs and eslint-config-next. I prefer to use bun as my package manager, although similar issues have been reported with npm and yarn. I did not introduce any new packages, but after executing bu ...

Automatic browser refresh with the `bun dev` command

Currently experimenting with the latest bun platform (v0.1.6) in conjunction with Hono. Here are the steps I followed: bun create hono test-api cd test-api bun dev After running the server, the following message appears: $ bun dev [1.00ms] bun!! v0.1.6 ...

The error message "FormData parsing error: final boundary is missing" appears due

Recently, I made the switch from node to bun in a Next.js project. However, when trying to parse form data, I encountered this error: 14 | const POST = async (request)=>{ 15 | try { 16 | console.log("request: ", await request.heade ...

What are the steps for deploying a static website project using bun.lockb on Github Pages?

My static page project is built with Vite and React, using bun to install packages and build the project. Due to this, it does not have a package-json.lock file, but instead utilizes bun.lockb. Now, I am attempting to deploy this project on Github Pages. ...