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

Error creating DXFViewer instance #14

Open
andrelzsousa opened this issue Jun 18, 2024 · 3 comments
Open

Error creating DXFViewer instance #14

andrelzsousa opened this issue Jun 18, 2024 · 3 comments

Comments

@andrelzsousa
Copy link

andrelzsousa commented Jun 18, 2024

Im using react and when i load a dxf file for testing i get the following error:

image

Im not sure whats happening, cause i did correctly ran npm install three-dxf-viewer and it is located on my package.json file.
How can i solve this?

@ieskudero
Copy link
Owner

How are you loading the DXFViewer class? I can't see why it could break loading the class unless I see the code. However, I have made a minimun application with react & vite, based on the react example, that shows how to use it
dxftest.zip

Hopes it help. Let me know if this runs or not.

@andrelzsousa
Copy link
Author

Thanks for the response.
So, i downloaded and tried to run the project you sent. It seems that the DXFViewer class error is gone and there isnt any TS error either. But a new error has apperead when i load a dxf file on the input:
image
Have you ever faced this one? Do you know how to solve it?

Thanks in advance!!!

@ieskudero
Copy link
Owner

Can you pass me the dxf file that gives you that error? I think it is easily fixable if I check for undefined x,y or z values, but I don't know why there are undefined values in that entity. I would need the dxf file to verify it.

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

2 participants