# Can't make a plugin to work on BRAT

**URL:** <https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369>\
**Category:** Devs: Plugins & API\
**Created:** [June 26, 2024, 8:12pm UTC](https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369 "2024-06-26T20:12:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![endlessblink](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@endlessblink](https://forum.obsidian.md/u/endlessblink)\
**Post date:** [June 26, 2024, 8:12pm UTC](https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369/1 "2024-06-26T20:12:20Z")

</div>

### What I’m trying to do

I am trying to run a new plugin called Plan\_and\_Block ([https://github.com/endlessblink/Plan\_and\_Block](https://github.com/endlessblink/Plan_and_Block)) on BRAT to test it out.

But I keep getting these error messages:

❌ Your latest Release is missing the `main.js` file.  
❌ Your latest Release is missing the `manifest.json` file.

The release seems to have both files main.js and manifest.json so I am not sure what is wrong.

### Things I have tried

I’ve published several releases and double checked the contents, but it still pops the same error message.

This is my first attempt ever at something like this, so maybe I am missing something obvious.

---

<div class="post-metadata">

**Author:** ![the\_tree](https://forum.obsidian.md/user_avatar/forum.obsidian.md/the_tree/32/51846_2.png) [@the\_tree](https://forum.obsidian.md/u/the_tree)\
**Post date:** [June 26, 2024, 11:12pm UTC](https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369/2 "2024-06-26T23:12:49Z")

</div>

By reading code of BRAT, I think it works this way:

1. download `manifest.json` from you main branch (from code, not release)
2. get the `version` fileld from `manifest.json`, like `0.1.5` (not `v0.1.5`)
3. use this version info, to download files of a matched release (download from `https://github.com/${repository}/releases/download/${version}/${fileName}`)

So after checking your repository, I think maybe you should change release tag from `v1.0.3` to just `0.1.3`

## Reference

[download logic of BRAT](https://github.com/TfTHacker/obsidian42-brat/blob/main/src/features/githubUtils.ts#L39)

---

<div class="post-metadata">

**Author:** ![endlessblink](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@endlessblink](https://forum.obsidian.md/u/endlessblink)\
**Post date:** [June 27, 2024, 6:47am UTC](https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369/3 "2024-06-27T06:47:12Z")

</div>

Thanks for the tips! Tried it but that didn’t help unfortunately.  
Any other suggestions?

---

<div class="post-metadata">

**Author:** ![the\_tree](https://forum.obsidian.md/user_avatar/forum.obsidian.md/the_tree/32/51846_2.png) [@the\_tree](https://forum.obsidian.md/u/the_tree)\
**Post date:** [June 27, 2024, 8:05am UTC](https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369/4 "2024-06-27T08:05:01Z")

</div>

You didn’t upload `main.js` and `manifest.json` in release:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/3/d/3d7128afc9d5dcf0284d60f2a3fc2d8cd8cfd397.png)

---

<div class="post-metadata">

**Author:** ![the\_tree](https://forum.obsidian.md/user_avatar/forum.obsidian.md/the_tree/32/51846_2.png) [@the\_tree](https://forum.obsidian.md/u/the_tree)\
**Post date:** [June 27, 2024, 8:06am UTC](https://forum.obsidian.md/t/cant-make-a-plugin-to-work-on-brat/84369/5 "2024-06-27T08:06:03Z")

</div>

![image](https://forum.obsidian.md/uploads/default/original/3X/a/0/a00db6ac4dc55e9632304d82d9b5b82a89ffa231.png)
