Error on package install
Error message
I've started up a new module project and was trying to install it on my foundry server (running on oracle). But I get an odd error when installing it via the module.json.
I've built module.json and zip via the fairly common strategy of github actions and github releases. The module.json and zip seem fine to me.
Has anyone else come across this or might be able to point me in the right direction to solve?
Solution:Jump to solution
Does the lang file have a different directory name? The manifest has
lang
, the repo has languages
.11 Replies
link to my release if that's helpful
https://github.com/chrisjbrown/my-names-jeff/releases/tag/v0.0.4
The ES module file you're trying to load (
scripts/module.js
) does not exist. Your zip only contains a scripts/module.de673b05.js
created by Vite, so fixing that file's name should help.:facepalmpicard: oh dang. thanks, going to try that
hmmm
dropped the has from the filename but still get the same error 😕
https://github.com/chrisjbrown/my-names-jeff/releases/tag/v0.0.5
Do all other files exist? E.g. the style file?
mmm style.css does seem to be missing
tried some things. ended up removing scss compiliing and just copied styles directory over. but same result
https://github.com/chrisjbrown/my-names-jeff/releases/tag/v0.0.9
Solution
Does the lang file have a different directory name? The manifest has
lang
, the repo has languages
.Foundry checks all files the manifest refers to. If something's missing, the manifest doesn't pass validation and you get a "helpful" error in the client. The server might produce something more reasonable – if not, improving this on Foundry's side might be interesting.
oof. yeah that was it
yeah i tried checking the error in the client but couldn't get much out of it. True, might be interesting to surface that in the UI in some way.
Thanks for your help!