Closed pboguslawski closed 6 months ago
Maybe your node_modules
broke somehow, try running make clean-all
and then retry make build
.
If you want to investigate deeper, could also see if a npm i
alone does any changes.
I have the same problem. I use Apple mac M1。use docker build:docker buildx build --platform=linux/amd64 -t test/dify-web:v1.3.7 .
,and cytoscape installed。bug have this errors
I was fine before, but not lately
Seems like upstream issue in that package: https://github.com/cytoscape/cytoscape.js/issues/3239
What's strange is that v1.21 uses 3.26.0
while the issues are reported with 3.29.0
.
I also occasionally experience the similar problem (not only related to cytoscape). I just do rm -rf node_modules
and then make build
, then everything goes well.
I think it is the npm/webpack's problem, for example, if there is a network error (or use ^C to stop the npm process), then the node_modules
directory would go corrupted. Removing node_modules
directory and restart the build
, then no error.
On my side (macOS M2), I tried rm -rf node_modules && make build
on 1.21 branch, it succeeds.
Problem started to occur in automatic build process (empty node_modules, no network errors, etc.) and occurs every time. Build process and source code were not changed in the meantime.
The problem is caused by running make generate-images
before make build
(we use custom logo and favicon) and removing --no-package-lock
from make generate-images
in Makefile
resolves this issue for us.
Please verify and fix.
Hmm yeah make generate-images
is somewhat of an oddball. Maybe we should just put those dependencies into package.json. At least the often-problematic canvas
dependency is listed as optionalDependency
so will not fail the whole install if it fails:
https://github.com/fabricjs/fabric.js/blob/c27a21883eda49b7a7bfcc32f49eb59a099a1536/package.json#L74
On topic here: Let's wait on https://github.com/cytoscape/cytoscape.js/issues/3239 and a future mermaid.js update to resolve this hopefully.
https://github.com/go-gitea/gitea/pull/30713 updates main branch to the fixed cytoscape version.
└─┬ mermaid@10.9.0
├─┬ cytoscape-cose-bilkent@4.1.0
│ └── cytoscape@3.29.2 deduped
└── cytoscape@3.29.2
Is this issue fixed after bump the version of dependencies?
Pretty sure it should.
Description
make build
worked fine a few days before for same gitea source and now throwsSimilar problem described on https://github.com/langgenius/dify/issues/3613
Gitea Version
1.21
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Compiled from sources.
Database
MySQL/MariaDB