Closed IgordeOliveira closed 7 months ago
You're welcome! I'm glad it's helpful.
Just install @rollup/rollup-linux-x64-musl
as a dev-dependency:
npm i @rollup/rollup-linux-x64-musl --save-dev
Or Add the following line to Dockerfile before installing NPM packages:
RUN npm i @rollup/rollup-linux-x64-musl --save-dev
I understand. Does this dependency have any connection to this repository?
No, It's about Vite, NPM, and probably Node.js base image.
I managed to solve the issue by removing the "--no-optional" flag from both the "npm install" and "npm ci" commands. It turns out that this was a known bug in NPM, which has been documented in the following issue: npm/cli#4828.
COPY package*.json ./
RUN if [ -f $ROOT/package-lock.json ]; \
then \
npm ci --no-optional --loglevel=error --no-audit; \
else \
npm install --no-optional --loglevel=error --no-audit; \
fi
Thanks @IgordeOliveira. I made a PR to addressing this issue: #63
Thanks for the project! I'm learning a lot. I wanted to report an issue with the Vite build. I'm still trying to solve it, but here are the logs:
Laravel 10 + Filament