failed to compile
Why might this be happening?
Failed to compile.
./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
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/SuperView.vue
@ ./src/components/SuperView.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
hi @jeffpeck-readcoor... that line depends on having spread properties, an ES2016+ proposal...
@Emigre Any idea on a potential fix for this?
I can't seem to get the library working for my project. I am using OpenSeadragon with Vue.js. When I try using this.viewer.initializeAnnotations() as indicated on the npm project page I get an error indicating that initializeAnnotations() is not a function. When I try importing the module I get an error saying that there was an unexpected import.
@lk-jeffpeck, @nkanetka, hi. I'm sorry that I didn't get back to you guys earlier. I haven't had the time to maintain this plugin, to be honest. I haven't had a look at this code in a while. I wanted to let you know, I'm going to terminate this plugin, so please fork the code if you need it. I'm not planning on maintaining it - it represents a burder for me at the moment, sadly. All the best, sorry that I didn't get back to you before.
@Emigre Thanks for replying. I haven't used the project that needed this in a number of years so that works for me. Best of luck and thanks for the update again!