drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Docker version of drawio doesn't open .vsdx anymore

Open Raytestrak opened this issue 6 months ago • 8 comments

  • [*] I agree to follow the Code of Conduct that this project adheres to.
  • [*] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.22

If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug Opening a .vsdx in a docker based draw.io results in an error: failed to load: http://localhost:8080/js/extensions.js

To Reproduce Steps to reproduce the behavior:

  1. Go to 'File'
  2. Click on 'Open rom'
  3. Click on 'Device'
  4. Scroll down to 'any .vsdx file on your device'
  5. Click open
  6. See errorfailed to load: http://localhost:8080/js/extensions.js

A clear and concise description of what you expected to happen.

Screenshots Just the error pops up.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 27.0.2, but I think it was already in 26.2

Desktop (please complete the following information):

  • OS: not relevant, docker.
  • Browser Edge and Chrome
  • Browser Version 136

Smartphone (please complete the following information):

  • Device: not tested
  • OS: not tested
  • Browser not tested
  • Version not tested

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Additional context I've tested multiple versions of draw.io, fell back to 26.0.16

Raytestrak avatar May 10 '25 08:05 Raytestrak

I dropped the attached vsdx into 27.0.2 and it opened correctly:

1740083278_BPMN In Color Sample.vsdx.zip

Image

davidjgraph avatar May 12 '25 21:05 davidjgraph

I installed docker on my MacBook (M1), ran draw.io like so:

docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 jgraph/drawio

cleared all my chrome data

http://localhost:8080/?offline=0&https=0 Service unavailable or blocked followed by Uncaught Class 'OrgChart.Annotations.CanBeNullAttribute' is already defined

http://localhost:8080/?offline=1&https=0 Service unavailable or blocked

https://localhost:8443/?offline=0 Failed to load http://localhost:8080/js/extensions.min.js

https://localhost:8443/?offline=1 Service unavailable or blocked

Safari gave the same errors (but I didn't clear my data there). I've never had docker or draw.io running on this machine.

Raytestrak avatar May 13 '25 13:05 Raytestrak

And without any URL parameters?

davidjgraph avatar May 13 '25 13:05 davidjgraph

http://localhost:8080 Service unavailable or blocked followed by Uncaught Class 'OrgChart.Annotations.CanBeNullAttribute' is already defined

https://localhost:8443: Failed to load http://localhost:8080/js/extensions.min.js

Raytestrak avatar May 13 '25 15:05 Raytestrak

Unfortunately, I can't debug with the available information.

davidjgraph avatar May 13 '25 16:05 davidjgraph

Can I help you get more info? It worked fine in earlier versions, I've tried it on three different docker environments, but all give the same error.

Raytestrak avatar May 13 '25 16:05 Raytestrak

Hello, we are facing the same issue since 2 or more weeks. Even falling back to version v26.0.16 does not solve the issue for us.

When opening a VSDX file, the extensions.min.js is getting loaded again resulting in the error: Uncaught Class 'OrgChart.Annotations.CanBeNullAttribute' is already defined

This js-file is not loaded again when opening other file formats. During debugging in the Developer Tools it is processing the full javascript again and loads all classes again. When trying in the online version the file is not reloaded, but just 2 classes are added, I think.

Ule2000 avatar May 23 '25 05:05 Ule2000

VSDX export removed from/mssing in Export menu.

Same issue with draw.io-27.0.5-windows-no-installer.exe

Image

draw.io-26.0.16-windows-no-installer.exe still showing the Menu VSDX (beta).

Image

Bug or feature removed? Will the import/export stay in the future (since in beta)?

romkell avatar May 25 '25 14:05 romkell

Still get the error: Uncaught Class 'OrgChart.Annotations.CanBeNullAttribute' is already defined. I even started from scratch, but to no avail.

I noticed that https://draw.io opens a new windows when opening the sample you provided. My docker based draw.io does not. I'd like to help you get more info, but I'm not programmer.

Raytestrak avatar Jul 12 '25 17:07 Raytestrak

Hi,

Just to add, these are the versions I've tested and can confirm importing .vsdx files work.

24.7.17 26.0.2 26.0.16 26.1.0

Non of the 28.x or 27.x versions worked for me. Let me know if there is anything I can do help with diagnosis/resolution.

sylvesrhi avatar Sep 22 '25 21:09 sylvesrhi

Hello team,

We also face the same issue in 28.0.4 version

Image Image

saabikahamed avatar Oct 08 '25 09:10 saabikahamed

Hi All,

Can anyone confirm if this is being worked on?

Thanks,

sylvesrhi avatar Oct 09 '25 08:10 sylvesrhi

Can it be related to this? Error is the same:

https://github.com/jgraph/drawio/issues/5140

Raytestrak avatar Oct 29 '25 19:10 Raytestrak