Install bulma as a dependency in a Vue 2.7.14 app and use Vite.
Try to build the Docker image.
Expected behavior
No error.
Actual behavior
When I try to build the image, I run into the following error:
476.8 > placemake-website@1.0.11 build /app
476.8 > vite build
476.8
477.6 vite v4.4.9 building for production...
478.0 transforming...
491.1 file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:28691
491.1 throw new Error(`Failed to resolve entry for package "${id}". ` +
491.1 ^
491.1
491.1 Error: Failed to resolve entry for package "bulma". The package may have incorrect main/module/exports specified in its package.json.
491.1 at packageEntryFailure (file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:28691:11)
491.1 at resolvePackageEntry (file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:28688:5)
491.1 at tryNodeResolve (file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:28419:20)
491.1 at Context.resolveId (file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:28180:28)
491.1 at Object.resolveId (file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:44207:64)
491.1 at async Object.<anonymous> (file:///app/node_modules/.pnpm/vite@4.4.9_sass@1.66.1/node_modules/vite/dist/node/chunks/dep-df561101.js:65837:21)
491.1
491.1 Node.js v20.5.1
491.2 ELIFECYCLE Command failed with exit code 1.
This is about Bulma.
This is a potential bug.
Overview of the problem
This is about the Bulma CSS framework.
I'm using Bulma version 0.9.4.
My browser is: Version 113.0.5672.126 (Official Build, ungoogled-chromium) (x86_64)
I am sure this issue is not a duplicate.
Description
Background
I have been migrating a Vue 2.7.14 app to Vite, but I have been unable to build the Docker image due to an error with an scss package.
Dockerfile
In
main.ts
, I import a main scss file, which imports other scss files.main.ts
main.scss
Steps to Reproduce
Expected behavior
No error.
Actual behavior
When I try to build the image, I run into the following error: