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

Can't resolve web-worker issue #142

Open
themason2011 opened this issue Jul 28, 2021 · 2 comments
Open

Can't resolve web-worker issue #142

themason2011 opened this issue Jul 28, 2021 · 2 comments

Comments

@themason2011
Copy link

Hi guys,

Thank you so much for providing this library! It seems like it has a lot of support and great features for graphing. Unfortunately, I've been having an issue with compiling a ReactJS Front-End when using elkjs in conjunction with the cytoscape-elk repo (I'm using cytoscape as the graphing library). Even when I just try to import cytoscape-elk into my App.js file, I get the following complier error:
image

Interestingly, I am able to get it working properly using the klay library, which from what I understand is just the deprecated version of elk, still created by you guys. Is there something I am missing that you guys think could cause the problem? I installed the dependencies mentioned in the repo, i.e. both elkjs and cytoscape, so I don't think it's an issue there. In addition, I looked into the file mentioned in the compiler error and found that main.js tries requiring a web-worker, but I'm not sure how to get one and it looks like it should fall back to a non-web worker version if one doesn't exist. Attached is my code as well, for reference. Thank you and I look forward to hearing from you soon!

Sincerely, Mason

image
image
image
etc.

@uruuru
Copy link
Member

uruuru commented Aug 7, 2021

Maybe related to #141.

@tylerlong
Copy link

yarn add --dev web-worker

resolved the issue for me.

apupier added a commit to apupier/vscode-kaoto that referenced this issue Dec 14, 2022
- the web-worker must be added as dev dependency. Based on this comment
kieler/elkjs#142 (comment) this
sounds like an ugly workaround but I'm not familiar enough with webpack
and yarn to have other ideas.

/!\ 0.5.0 backend has a regression and cannot be used, see
KaotoIO/kaoto-backend#383

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
apupier added a commit to apupier/vscode-kaoto that referenced this issue Dec 14, 2022
- the web-worker must be added as dev dependency. Based on this comment
kieler/elkjs#142 (comment) this
sounds like an ugly workaround but I'm not familiar enough with webpack
and yarn to have other ideas.

/!\ EIPs are not working:
data:image/gif;R0lG…:1
 GET data:image/gif;R0lGODlhUgAxAHcAMSH+GlNvZnR3YXJlOiBNaWNyb3NvZnQgT2ZmaWNlACH5…qr5Ky9r1ynUGkqaa7duGFj3t071ehbvoDt+G3Js7BhEXlxHl5sOLEFf5Aj93uxT7Lly7kSAAA7
net::ERR_INVALID_URL

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
apupier added a commit to apupier/vscode-kaoto that referenced this issue Jan 4, 2023
- the web-worker must be added as dev dependency. Based on this comment
kieler/elkjs#142 (comment) this
sounds like an ugly workaround but I'm not familiar enough with webpack
and yarn to have other ideas.

/!\ EIPs are not working. The icon briefly shows up and then it vanishes

there is this error in console log data:image/gif;R0lG…:1
 GET data:image/gif;R0lGODlhUgAxAHcAMSH+GlNvZnR3YXJlOiBNaWNyb3NvZnQgT2ZmaWNlACH5…qr5Ky9r1ynUGkqaa7duGFj3t071ehbvoDt+G3Js7BhEXlxHl5sOLEFf5Aj93uxT7Lly7kSAAA7
net::ERR_INVALID_URL but it seems unrelated based on comments on
KaotoIO/kaoto-ui#1023

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
apupier added a commit to apupier/vscode-kaoto that referenced this issue Jan 6, 2023
- the web-worker must be added as dev dependency. Based on this comment
kieler/elkjs#142 (comment) this
sounds like an ugly workaround but I'm not familiar enough with webpack
and yarn to have other ideas.

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
apupier added a commit to KaotoIO/vscode-kaoto that referenced this issue Jan 6, 2023
- the web-worker must be added as dev dependency. Based on this comment
kieler/elkjs#142 (comment) this
sounds like an ugly workaround but I'm not familiar enough with webpack
and yarn to have other ideas.

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants