I’m trying to install this theme Hugoplate.
I got this error
Built in 919 ms
Error: error building site: TAILWINDCSS: failed to transform "/css/main.css" (text/css):
(node:13942) Warning: To load an ES module,
set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
ReferenceError: structuredClone is not defined
go version go1.24.0 linux/amd64
hugo v0.144.1-a79d63a44659b6bc76dcdf223de1637e0bd70ff6+extended linux/amd64 BuildDate=2025-02-18T12:14:07Z VendorInfo=snap:0.144.1
Node.js v22.14.0
PS
After I add “type”: “module” in the package.json
I got this error: Error: error building site: TAILWINDCSS: failed to transform "/css/main.css" (text/css): ReferenceError: structuredClone is not defined
Start building sites …
hugo v0.144.1-a79d63a44659b6bc76dcdf223de1637e0bd70ff6+extended linux/amd64 BuildDate=2025-02-18T12:14:07Z VendorInfo=snap:0.144.1
Built in 1645 ms
Environment: “development”
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
OK, that adds to the mystery … It means that the latest Tailwind works fine on our box … I may try that theme myself tomorrow, but I have no further ideas for you at this moment.
hugo version
# hugo v0.144.2-098c68fd18f48031a7145bedab30cbaede48858f+extended linux/amd64 BuildDate=2025-02-19T12:17:04Z VendorInfo=gohugoio
node -v
# v22.14.0
go version
# go version go1.24.0 linux/amd64