hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.03k stars 586 forks source link

JSBUILD failed when init from scratch #928

Open liolok opened 5 months ago

liolok commented 5 months ago

Question

I followed the steps from official documentation and hugo server -w says this:

hugo v0.125.3+extended linux/amd64 BuildDate=unknown

ERROR JSBUILD: failed to transform "/scripts/application.js" (text/javascript): Could not resolve "cytoscape/dist/cytoscape.umd.js"
Built in 2165 ms
Error: error building site: JSBUILD: failed to transform "/scripts/application.js" (text/javascript): Could not resolve "cytoscape/dist/cytoscape.umd.js"

Also, direct run locally on fork of hugo-toha.github.io works just fine.

liolok commented 5 months ago

Dependencies check:

> go version; node --version; npm --version
go version go1.22.2 linux/amd64
v21.7.3
10.5.2
hossainemruz commented 4 months ago

Hi @liolok! I just tried the steps in the doc. It is working as expected.

This is my hugo version:

hugo v0.125.6+extended linux/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=brew

These are my dependency versions:

go version go1.22.2 linux/amd64
v20.7.0
10.1.0