Error on package install

Error message
Error: Cannot read properties of null (reading 'protected')
Error: Cannot read properties of null (reading 'protected')
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?
No description
Solution:
Does the lang file have a different directory name? The manifest has lang, the repo has languages.
Jump to solution
11 Replies
Ethaks
Ethaks•8mo ago
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.
bluegreymouse
bluegreymouseOP•8mo ago
:facepalmpicard: oh dang. thanks, going to try that
bluegreymouse
bluegreymouseOP•8mo ago
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
Ethaks
Ethaks•8mo ago
Do all other files exist? E.g. the style file?
bluegreymouse
bluegreymouseOP•8mo ago
mmm style.css does seem to be missing
bluegreymouse
bluegreymouseOP•8mo ago
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
Ethaks
Ethaks•8mo ago
Does the lang file have a different directory name? The manifest has lang, the repo has languages.
Ethaks
Ethaks•8mo ago
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.
bluegreymouse
bluegreymouseOP•8mo ago
oof. yeah that was it
bluegreymouse
bluegreymouseOP•8mo ago
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!
Want results from more Discord servers?
Add your server