How to load an unpacked extension?

116 views
Skip to first unread message

Sai Muddam

unread,
Oct 25, 2023, 9:34:02 PM10/25/23
to Chromium Extensions
I wrote some really basic code for a google extension that I just wanted to test for myself. When I went to search up how to test/view it, results for the load unpacked came up. When I went to post my directory folder into the request it didn't show any of my files.

temp2.png
temp.png

Patrick Kettner

unread,
Oct 25, 2023, 9:43:22 PM10/25/23
to Sai Muddam, Chromium Extensions
Hi Sai!
You just need to click "select folder" when you are in the folder where the files would be.

On Wed, Oct 25, 2023 at 9:34 PM Sai Muddam <said...@gmail.com> wrote:
I wrote some really basic code for a google extension that I just wanted to test for myself. When I went to search up how to test/view it, results for the load unpacked came up. When I went to post my directory folder into the request it didn't show any of my files.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/24292bdd-0434-47c4-99e8-4930b4294a4dn%40chromium.org.

Sai Muddam

unread,
Oct 25, 2023, 9:58:12 PM10/25/23
to Chromium Extensions, Patrick Kettner, Chromium Extensions, Sai Muddam
I'm sorry for the misunderstanding, that icons folder is the only one of the files that is showing up. I was already in the folder in both of the images. The issue is in 'temp' it shows that the files are all there (when i look at through desktop), when I look at it through google it doesn't show any of them ('temp2'). The issue isn't the files though because I checked it multiple times the files are correctly formatted and coded. I couldn't find the issue so here I am.

Thanks!

Sai Muddam

unread,
Oct 25, 2023, 9:59:45 PM10/25/23
to Chromium Extensions, Sai Muddam, Patrick Kettner, Chromium Extensions
Also, I forgot to mention the error is when I do click select folder this is what shows up:
temp3.png

Patrick Kettner

unread,
Oct 25, 2023, 10:12:15 PM10/25/23
to Sai Muddam, Chromium Extensions
Don't click icons. You hit "select folder" when you are in it's parent folder. it is expected behavior that only folders are displayed. If you are getting an about invalid manifest file in _that_, then your manifest file isn't valid JSON

Sai Muddam

unread,
Oct 25, 2023, 10:18:50 PM10/25/23
to Chromium Extensions, Patrick Kettner, Chromium Extensions
Wait what? It says it is a JSON file though.

Is there something wrong with my code?

{
    "manifest_version": 3,
    "name": "Motivational Quotes Tab",
    "version": "1.0",
    "description": "Get inspired with motivational quotes on every new tab!",
    "permissions": ["activeTab"],
    "action": {
      "default_popup": "popup.html",
      "default_icon": {
        "16": "icons/icon16.png",
        "48": "icons/icon48.png",
        "128": "icons/icon128.png"
      }
    },
    "chrome_url_overrides": {
      "newtab": "popup.html"
    },
    "icons": {
      "16": "icons/icon16.png",
      "48": "icons/icon48.png",
      "128": "icons/icon128.png"
    }
  }
 
temp4.png

Patrick Kettner

unread,
Oct 25, 2023, 10:25:26 PM10/25/23
to Sai Muddam, Chromium Extensions
The error message you shared says "Manifest is not valid JSON. Line: 1, column: 1, Unexpected token." That means the the first character, on the first line of the manifest.json file is something other than the opening curly brace, as far as Chrome's parser is concerned. 
The json you shared looks fine. There could be an invisible/control character in the file itself? 

Sai Muddam

unread,
Oct 25, 2023, 10:57:28 PM10/25/23
to Chromium Extensions, Patrick Kettner, Chromium Extensions
Nope, nothing of that sort. I think it just says that Manifest is not valid because when I am selecting the directory folder, the manifest files and all the other files don't show up (aka don't exist when selecting the file).

How would I go by fixing that?

wOxxOm

unread,
Oct 26, 2023, 4:47:18 AM10/26/23
to Chromium Extensions, Sai Muddam, Patrick Kettner, Chromium Extensions
Re-save manifest.json in UTF-8 encoding without BOM.
Reply all
Reply to author
Forward
0 new messages