question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

code in contentView can't call functions on `chrome.runtime` without specifying extension id

See original GitHub issue

Wondering the reason behind you injecting the contentView script in the content index.ts rather than just directly rendering everything in the content script? Running into a small issue where I have to manually pass the chrome extension ID in order to run any of the chrome scripts which is just a bit annoying

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bowencoolcommented, Jul 7, 2022

use

import("src/pages/contentView/index.js")

instead of append script

<script type="module" src="src/pages/contentView/index.js" />

in src/pages/content/index.ts, just like #15

1reaction
spencerc99commented, Jul 7, 2022

@spencerc99

The part causing the error has been removed from the source code. Would you like to clear the cache and check again?

Ah thanks for the help! it was a cache issue. Resolved 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

closure_compiler/externs/chrome_extensions.js - Google Git
into a Chrome extension API and for which there is no constructor. ... specifying a type for the callback's param, so the compiler...
Read more >
Extensions | Apple Developer Forums
Hi in my web extension I have a button, which I programmatically create a file for download when the user clicks it. Here...
Read more >
641efff1566c569f02d395f872d4c...
+ * into a Chrome extension API and for which there is no constructor. ... + * * at-param {function(!chrome.runtime.
Read more >
Activity | Android Developers
Applications should extend Activity themselves. This class is not compatible with AppCompat, and the functionality it provides is not complex.
Read more >
IBM Cognos Analytics Version 11.1: Managing User Guide
Running Cognos Analytics with customized extensions and views disabled. ... In the initial configuration, this role has no members and capabilities. Only.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found