Open raficfaddoul opened 2 weeks ago
im getting the same error: where you able to solve it?
@andrelzsousa no not yet!!
I guess I could try to load as plain javascript file in an html, but I don't think is going to work that way. I can try parsing it with babel and see if it works. I will try and update it as soon as I can.
Hello, I tried the NPM install and got error from Blazor that DXFViewer is not a constructor. I tried the CDN:
I got that DXFViewer is not defined
my javascript code for the CDN was originally: window.dxfViewerInterop = { loadDXF: async function (fileInputId, fontUrl, containerId) { let fileInput = document.getElementById(fileInputId); let file = fileInput.files[0];
};
my javascript for the NPM instalation is: window.dxfViewerInterop = { loadDXF: async function (fileInputId, fontUrl, containerId) { let fileInput = document.getElementById(fileInputId); let file = fileInput.files[0];
};