Skip to content
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

failed to compile #17

Open
lk-jeffpeck opened this issue Mar 9, 2018 · 4 comments
Open

failed to compile #17

lk-jeffpeck opened this issue Mar 9, 2018 · 4 comments

Comments

@lk-jeffpeck
Copy link

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
Copy link
Owner

emigre commented Mar 10, 2018

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

@emigre emigre closed this as completed Mar 10, 2018
@emigre emigre reopened this Mar 10, 2018
@nkanetka
Copy link

@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
Copy link
Owner

emigre commented May 30, 2020

@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
Copy link

nkanetka commented Jul 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants