openseadragon-annotations icon indicating copy to clipboard operation
openseadragon-annotations copied to clipboard

failed to compile

Open lk-jeffpeck opened this issue 8 years ago • 4 comments

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

lk-jeffpeck avatar Mar 09 '18 22:03 lk-jeffpeck

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

emigre avatar Mar 10 '18 11:03 emigre

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

nkanetka avatar Mar 12 '18 16:03 nkanetka

@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 avatar May 30 '20 22:05 emigre

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

nkanetka avatar Jul 04 '20 15:07 nkanetka