Replace all uses of vue-media-annotator alias under src/ with relative imports#1026
Conversation
|
Can you find anywhere else "vue-media-annotator" is used inside src/ ? There used to be something in the readme explaining this, but I guess this slipped in. |
Sure, meaning if I find anymore occurances of this, replace them with relative imports? |
|
Yep |
vue-media-annotator alias under src/ with relative imports
Do you mean there's a reason why we'd make |
|
No. vue-media-annotator is used to alias this library from other packages (platform, dive-common). But the code in src/ can't use this alias itself because the alias will get bundled into the lib, and then when someone installs it from NPM, that alias points nowhere. |
When using
vue-media-annotatorexternally, attempting to import anything fromsrc/layers/TextLayer.ts(in my case theTextDatatype), the following error is thrown:I suspect this is due to the fact that in the project itself,
vue-media-annotatoris an alias to thesrcdirectory.This PR just replaces that with the use of a relative path.