-
Notifications
You must be signed in to change notification settings - Fork 40
Description
What could be possibly done to fix that ?
require('./bootstrap');
$.OpenSeadragon = require('openseadragon');
require('openseadragon-annotations');
var viewer = OpenSeadragon({
///
followed by
viewer.initializeAnnotations();
// const annotations = new OpenSeadragon.Annotations({viewer});
ERROR in ./node_modules/openseadragon-annotations/src/main.js
Module not found: Error: Can't resolve 'OpenSeadragon' in '/home/vagrant/dview/portal/node_modules/openseadragon-annotations/src'
@ ./node_modules/openseadragon-annotations/src/main.js 1:0-67
@ ./resources/js/document-edit.js
@ multi ./resources/js/document-edit.js
ERROR in ./node_modules/openseadragon-annotations/src/controls/Control.js
Module not found: Error: Can't resolve 'OpenSeadragon' in '/home/vagrant/dview/portal/node_modules/openseadragon-annotations/src/controls'
@ ./node_modules/openseadragon-annotations/src/controls/Control.js 1:0-47
@ ./node_modules/openseadragon-annotations/src/controls/Move.js
@ ./node_modules/openseadragon-annotations/src/controls/index.js
@ ./node_modules/openseadragon-annotations/src/main.js
@ ./resources/js/document-edit.js
@ multi ./resources/js/document-edit.js
ERROR in ./node_modules/openseadragon-annotations/src/store/Store.js
Module not found: Error: Can't resolve 'OpenSeadragon' in '/home/vagrant/dview/portal/node_modules/openseadragon-annotations/src/store'
@ ./node_modules/openseadragon-annotations/src/store/Store.js 1:0-54
@ ./node_modules/openseadragon-annotations/src/main.js
@ ./resources/js/document-edit.js
@ multi ./resources/js/document-edit.js
ERROR in ./node_modules/openseadragon-annotations/src/components/Annotations.js
Module parse failed: Unexpected token (98:8)
You may need an appropriate loader to handle this file type.
| 'svg',
| {
| ...svgProperties,
| style: svgStyles,
| onMouseDown: this.handleMouseDown.bind(this),
@ ./node_modules/openseadragon-annotations/src/main.js 3:0-51
@ ./resources/js/document-edit.js
@ multi ./resources/js/document-edit.js