Skip to content

Missing tailwindcss/vite when running with docker #62

@tungts1101

Description

@tungts1101

I am setting up to run the project with docker. Below is the Dockerfile that I use to build

FROM node:22-slim
WORKDIR /app
COPY frontend /app/
RUN npm install

The build process doesn't get any error, however, when I try to run I meet this error of missing dependencies.

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@tailwindcss/vite' imported from /app/node_modules/.vite-temp/vite.config.js.timestamp-1742726894358-e93502a9837d5.mjs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions