When I try to import an svg icon as described here: https://github.com/jupyterlab/jupyterlab/blob/05a2fa047c5416ae1dd6a6cdac165c13a3513f47/packages/ui-components/README.md#how-to-create-a-new-labicon-from-an-external-svg-file
And, when I execute jlpm run build, I get an error:
ModuleNotFoundError: Module not found: Error: Can't resolve './icons/record_on.svg' in '/home/null/workspace/educational-technology-collective/etc_jupyterlab_authoring/lib'
./icons/record_on.svg
is located in the root directory of the extension.
If I add ./icons/record_on.svg
to /home/null/workspace/educational-technology-collective/etc_jupyterlab_authoring/lib
it builds.
However, I am guessing that there is a better way to include icons in the project. Does anyone have any guidance on this?