Here's what I did:
- In the terminal, change into the directory
- The popup app is built successfully
- Go to
https://localhost:3000 in the browser.
- I saw blank screen. When opening the console, I got the following error:
Fatal error on initialisation: TypeError: Cannot read property 'addListener' of undefined
The error is thrown when calling the
init method of class
Bridge, at the following line:
The reason is the object at
this.browser_.runtime only contains the following keys:
undefined, and trying to call
addListener method on it leads to an error.
I don't know what to expect or if I ran the app totally wrong, so can anyone please help?
To behonest, I've read that BUILD.md every day for the last two weeks. It's still not clear if I do it right.
I've done what the BUILD.md tell:
npm run watch
As I understand correctly, the third command is only for watching whenever there are changes inside the
popup directory. Whenever any file inside this directory change, it will rebuild the popup to the
Then I add the whole
app-clipper as an unpacked Chrome extension in developer mode. But that directory includes dependencies and weigh more than 160mb in total. Is that how it is supposed to work?
I was going to write something, but I see I'd just repeat what it's in BUILD.md:
npm run watch # To watch for changes
To test the extension please refer to the relevant pages for each browser: Firefox / Chrome. Please note that the extension in dev mode will only connect to a dev instance of the desktop app (and vice-versa).
Is there something unclear about these instructions? Where does it say you need to open
https://localhost:3000 in a browser for example?
I assume I have to open
localhost:3000 because there is a
start script in
node scripts/start.js. I tried running it and see the error so just asking.