-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.0.5 not compiling #24
Comments
I did this to make it work: In node_modules/openseadragon-annotations/src/main.js In node_modules/openseadragon-annotations/src/controls/Control.js In node_modules/openseadragon-annotations/src/store/Store.js In node_modules/openseadragon-annotations/src/controls/Move.js
To:
NOTE: you may need to update the path to these images in your user code, (the OpenSeadragon option prefixUrl can be used to set the button image path prefixes, and some plugins use this also), depending on your environment , and for the buttons in the main OpenSeadragon viewer also. A possible place for that is after creating the OpenSeadragon viewer object and initializing the OpenSeadragon-Annotations with In node_modules/openseadragon-annotations/src/controls/Draw.js
To:
NOTE: see note above |
Hi @hugeps and @rgdevx . Sorry that I didn't get back to you earlier. I'm not sure about this anymore, I haven't had the time to invest in this at all to be honest. I do hope that the code as it is is still useful for you guys, feel free to make it your own and continue working on it. For me it's a burden and I'm planning on terminating it. I've thought about letting you know in case you need it. |
What could be possibly done to fix that ?
require('./bootstrap');
$.OpenSeadragon = require('openseadragon');
require('openseadragon-annotations');
///
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
The text was updated successfully, but these errors were encountered: