Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"

Ive been trying to resolve this issue for the past 5+ hours. And I tracked it far enough to be sure that this is Buns fault.
Running all this with node throws no errors.

I am trying to Dockerize my Nuxt app and run it with the latest version of bun. On page load I get the following error.

This specifically only happens when I run Nuxt as dev. Production works fine. Why docker for dev environment? Ease of development as this repo has many other puzzles.

I cannot find anything online about this.

Here is my Dockerfile:
ARG NODE_IMAGE=oven/bun:latest
FROM $NODE_IMAGE AS base
WORKDIR /usr/src/app

FROM base AS dependencies
COPY package.json bun.lockb ./
RUN bun install

FROM base AS development
COPY --from=dependencies /usr/src/app/node_modules ./node_modules
COPY . .

ENV NODE_ENV=development
ENV HOST=0.0.0.0
EXPOSE 3000

ENTRYPOINT ["bun", "run", "dev"]
image.png
Was this page helpful?