google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.62k stars 904 forks source link

[UG] Give guidance on what to do on "failed to load modules" error #2117

Closed chalin closed 2 weeks ago

chalin commented 2 weeks ago
chalin commented 2 weeks ago

/cc @sftim

sftim commented 2 weeks ago

A related concern; the postinstall I think runs cp -R node_modules/bootstrap/scss/vendor/* assets/_vendor/bootstrap/scss/ and this is making assumptions about both the current working directory and the name of the install target.

Seems like NPM might not guarantee those are always the right values to make that command work.

chalin commented 2 weeks ago

For the cp command, we've switched to use of the NPM cpy-cli command. As for the working directory, I'll leave that as is for now. We can address any specific issues if/when they arise.

chalin commented 2 weeks ago

@sftim - btw, unless you run ci:prepare, you won't hit the copy commands. The ci:prepare script is only for those maintaining and releasing Docsy.