Skip to content

Chrome Extension build does not work #292

@jpv-at-work

Description

@jpv-at-work

Hello,

I am trying to fix an integration bug but am stuck on building and installing the Chrome extension. So far I have tried the following:

  1. Clone repository
  2. Follow the README instructions for building
  3. Install the locally built version

I have encountered several errors and problems:

README

I followed the instructions for Building and Testing => Chrome extension. The guide says that the generated build output will be found under www/chrome.dev (see: https://github.com/clockify/browser-extension/blob/master/README.md?plain=1#L33). However, for me it generated the build output under chrome.dev in the repository root (i.e. not in a www folder like the README suggests). Is the README outdated or did I make a mistake?

Installation Errors

After installing the locally built extension, I see two errors in Chrome:

Image Image

I am able to work around the first error by adding the following line to the manifest.chrome.dev.json:

	"externally_connectable": {
		"ids": ["*"],
		"accepts_tls_channel_id": false,
		"matches": ["*://*/*"] <--------
	}

I was not able to find a quick fix for the second error and am stuck at installing the extension for testing my bugfix.

Now I am wondering, am I doing something fundamentally wrong while building the application or is the current master version broken in some way? My steps were quite simple, just to reiterate: npm i --legacy-peer-deps, npm run compile.dev.chrome and then installing it in Chrome on a Mac.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions