thomiceli / opengist

Self-hosted pastebin powered by Git, open-source alternative to Github Gist.
https://opengist.io
GNU Affero General Public License v3.0
1.9k stars 100 forks source link

Fail to build on Ubuntu 22.04.5 LTS #349

Closed TehPeGaSuS closed 1 month ago

TehPeGaSuS commented 1 month ago

Go version: go version go1.23.2 linux/amd64
Git version: git version 2.34.1 Node.js version: v20.17.0 NPM version: 10.9.0

Error:

$ make
Cleaning up build artifacts...
Installing NPM dependencies...

added 460 packages, and audited 461 packages in 8s

67 packages are looking for funding
  run `npm fund` for details

42 vulnerabilities (35 moderate, 7 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
Installing Go dependencies...
Building frontend assets...
npx vite -c public/vite.config.js build
vite v4.5.3 building for production...
✓ 41 modules transformed.
✓ built in 2.38s
[vite:css] [postcss] /home/opengist/opengist/public/embed.scss:2816:3: The `bg-transparent` class does not exist. If `bg-transparent` is a custom class, make sure it is defined within a `@layer` directive.
file: /home/opengist/opengist/public/embed.scss:2816:3
error during build:
CssSyntaxError: [postcss] /home/opengist/opengist/public/embed.scss:2816:3: The `bg-transparent` class does not exist. If `bg-transparent` is a custom class, make sure it is defined within a `@layer` directive.
    at Input.error (/home/opengist/opengist/node_modules/postcss/lib/input.js:106:16)
    at AtRule.error (/home/opengist/opengist/node_modules/postcss/lib/node.js:115:32)
    at processApply (/home/opengist/opengist/node_modules/tailwindcss/lib/lib/expandApplyAtRules.js:380:29)
    at /home/opengist/opengist/node_modules/tailwindcss/lib/lib/expandApplyAtRules.js:551:9
    at /home/opengist/opengist/node_modules/tailwindcss/lib/processTailwindFeatures.js:55:50
    at async plugins (/home/opengist/opengist/node_modules/tailwindcss/lib/plugin.js:38:17)
    at async LazyResult.runAsync (/home/opengist/opengist/node_modules/postcss/lib/lazy-result.js:261:11)
    at async compileCSS (file:///home/opengist/opengist/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:38903:25)
    at async Object.transform (file:///home/opengist/opengist/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:38300:56)
    at async transform (file:///home/opengist/opengist/node_modules/rollup/dist/es/shared/node-entry.js:24449:16)
make: *** [Makefile:21: build_frontend] Error 1

The "bad" commit seems to be df226cbd9949c8dc5a865425488e85360cda1b7d since it builds perfectly fine with 30685881112689e9be27834d1f9581d00eb9f066

zenofile commented 1 month ago

Same problem here. I got it to build by adding:

    transparent: 'transparent',
    current: 'currentColor',

to public/tailwind-embed.config.js