The purpose of this extension is to reproduce the bug encountered with @autoInjectable
from tsyringe.
The installed extension will immediately throw an error visible in chrome://extensions/
.
Uncaught TypeError: Class constructor HelloService cannot be invoked without 'new'
-
Import this Git-Repository into your favorite editor
-
From within the top level directory containing the file package.json, run:
npm install
Build:
npm run build
Watch mode:
npm run watch
Cleanup:
npm run clean
Make sure that the dist folder in your cloned project exists. If not build the project before you continue with the following steps.
- Open a new tab and navigate to
chrome://extensions/
- Enable the developer mode on the top right corner
- Click
load unpacked extension
on the top left corner - From within the newly opened Explorer Window Navigate to the
dist
directory in this project - Click
Open
- Now activate the extension by toggling the switch to
On