Comments (5)
Kinda hacky, but does RUN bun install --skip-ts-errors
help? I'm guessing it's because isNaturalNumber
is either defined as an instance of some module.
from bun.
I have installed system dependencies to solve this problem, but I feel that this is not the best solution. And I don't have enough time now to study
You can make a copy of the package.json file I provided above and use it https://bun.sh/guides/ecosystem/docker According to the reference I provided above, you only need to copy my package.json and execute bun iinstall to find the specific problem with this dockerfile. I hope the big shot can help me take a look.
This is currently my dumbest way to solve it. I hope there can be a better way, please
FROM oven/bun:1 as base
WORKDIR /app
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb bunfig.toml /temp/dev/
ENV PATH="/usr/bin/git:${PATH}"
ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN apt-get update && apt-get install -y
libc6
libgcc1
libstdc++6
zlib1g
libpng16-16
libjpeg62-turbo
libgif7
libglib2.0-0
autoconf
automake
libtool
nasm
build-essential
file
nodejs
RUN apt-get update && apt-get install -y \
libc6 \
zlib1g \
libglib2.0-0 \
autoconf \
automake \
libtool \
nasm \
build-essential \
file \
nodejs
RUN apt-get update && apt-get install -y \
nodejs \
file \
libc6
RUN cd /temp/dev && bun install
RUN apt-get install -y git
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
RUN bun run build
CMD cp -r /app/dist /test
from bun.
from bun.
I hope there is a better solution. If possible, I hope you can help me take a look.
from bun.
Indeed, currently there are many compatibility issues with bun that cannot completely replace nodes. I hope it will improve in the future. I have already resolved this issue through pnpm. I won't tinker with bun for now. thanks
from bun.
Related Issues (20)
- `node:child_process.exec` fails when cwd is ":" HOT 1
- `Bun.file.text` doesn't return the full file if it's currently being written to
- pendingWebsockets not decreasing after closing/terminating connections from server HOT 1
- Runtime plugin causes Segmentation fault
- [windows] Fix process.env with spread, ownKeys() trap normalize mixed case keys HOT 1
- [windows] Fix source paths in error messages, it says `D:` as the file path
- tauri app blank white screen on ubuntu18.04
- Bun.file().slice(1).stream() returns entire original file, not slice HOT 3
- Invalid byte sequence error when run bun create command HOT 1
- Support blob `binaryType` in WebSocket
- Plugin onResolve catches build-in modules like "fs", "path" etc.
- Load Testing in webpage nextjs. TypeError: request.endsWith is not a function. HOT 7
- dyld[48878]: missing symbol called HOT 2
- bun --bun run build hangs with NextJS 14.1 HOT 8
- Upgrade of "next" package does not seem to update "@next/swc" optional dependency
- bundler: implement `--legal-comments` to control how licenses in source code is bundled. HOT 3
- Calling `$(...)` results in a segmentation fault HOT 2
- `spawnSync` throws error instead of defining property
- Bun.env vars no longer typed in 1.0.26 HOT 1
- Bun crashing in CI (1.0.26)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bun.