emigre / openseadragon-annotations

Draw annotations over deep zoom images
BSD 3-Clause "New" or "Revised" License
97 stars 40 forks source link

failed to compile #17

Open lk-jeffpeck opened 6 years ago

lk-jeffpeck commented 6 years ago

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
emigre commented 6 years ago

hi @jeffpeck-readcoor... that line depends on having spread properties, an ES2016+ proposal...

nkanetka commented 6 years ago

@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.

emigre commented 4 years ago

@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.

nkanetka commented 4 years ago

@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!