build error:Error: Cannot find module '../lightningcss.freebsd-x64.node' #11439

Closed
opened 2025-11-02 09:37:41 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @lhmwzy on GitHub (Aug 10, 2023).

Description

#TAGS="bindata" gmake build

up to date in 859ms
rm -rf public/assets/js public/assets/css public/assets/fonts public/assets/img/webpack
npx webpack
[webpack-cli] Failed to load '/data/giteagit/webpack.config.js' config
[webpack-cli] Error: Cannot find module '../lightningcss.freebsd-x64.node'
Require stack:

  • /data/giteagit/node_modules/lightningcss/node/index.js
  • /data/giteagit/node_modules/lightningcss-loader/dist/loader.js
  • /data/giteagit/node_modules/lightningcss-loader/dist/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/data/giteagit/node_modules/lightningcss/node/index.js:21:22)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/data/giteagit/node_modules/lightningcss/node/index.js',
    '/data/giteagit/node_modules/lightningcss-loader/dist/loader.js',
    '/data/giteagit/node_modules/lightningcss-loader/dist/index.js'
    ]
    }
    gmake: *** [Makefile:954: public/assets/js/index.js] Error 2

Gitea Version

commit: a370efc13f

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

git version 2.34.1

Operating System

FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64

How are you running Gitea?

#git clone https://github.com/go-gitea/gitea.git giteagit
#cd giteagit
#TAGS="bindata" gmake build

Database

None

Originally created by @lhmwzy on GitHub (Aug 10, 2023). ### Description #TAGS="bindata" gmake build up to date in 859ms rm -rf public/assets/js public/assets/css public/assets/fonts public/assets/img/webpack npx webpack [webpack-cli] Failed to load '/data/giteagit/webpack.config.js' config [webpack-cli] Error: Cannot find module '../lightningcss.freebsd-x64.node' Require stack: - /data/giteagit/node_modules/lightningcss/node/index.js - /data/giteagit/node_modules/lightningcss-loader/dist/loader.js - /data/giteagit/node_modules/lightningcss-loader/dist/index.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/data/giteagit/node_modules/lightningcss/node/index.js:21:22) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/data/giteagit/node_modules/lightningcss/node/index.js', '/data/giteagit/node_modules/lightningcss-loader/dist/loader.js', '/data/giteagit/node_modules/lightningcss-loader/dist/index.js' ] } gmake: *** [Makefile:954: public/assets/js/index.js] Error 2 ### Gitea Version commit: a370efc13f0e ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version git version 2.34.1 ### Operating System FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 ### How are you running Gitea? #git clone https://github.com/go-gitea/gitea.git giteagit #cd giteagit #TAGS="bindata" gmake build ### Database None
GiteaMirror added the type/bugtype/upstream labels 2025-11-02 09:37:41 -06:00
Author
Owner

@silverwind commented on GitHub (Aug 10, 2023):

Upstream issue: https://github.com/parcel-bundler/lightningcss/issues/559

We could potentially try to fallback to esbuild minify if lightningcss fails to load.

Should still work on the 1.20 branch because we don't have lightningcss there.

@silverwind commented on GitHub (Aug 10, 2023): Upstream issue: https://github.com/parcel-bundler/lightningcss/issues/559 We could potentially try to fallback to esbuild minify if lightningcss fails to load. Should still work on the 1.20 branch because we don't have lightningcss there.
Author
Owner

@silverwind commented on GitHub (Aug 11, 2023):

Try again on latest main.

@silverwind commented on GitHub (Aug 11, 2023): Try again on latest main.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11439