When background.js script contains external module imports like:
import { Client } from '@notionhq/client';
I get the following error while trying to load the extension in Chrome:
Service worker registration failed
Uncaught TypeError: Failed to resolve module specifier "@notionhq/client". Relative references must start with either "/", "./", or "../".
When
background.js
script contains external module imports like:I get the following error while trying to load the extension in Chrome: