You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Received this error when trying to import DxfParser.
Could not find a declaration file for module 'dxf-json'. '/Users/rajbirjohar/Projects/oxygen/oxygen-ui/node_modules/.pnpm/[email protected]/node_modules/dxf-json/dist/bundle.mjs' implicitly has an 'any' type.
There are types at '/Users/rajbirjohar/Projects/oxygen/oxygen-ui/node_modules/dxf-json/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'dxf-json' library may need to update its package.json or typings.
Seems like the types are not being created correctly.
To Reproduce
Steps to reproduce the behavior:
Create a new react project.
Install dxf-json.
Import DxfParser.
Expected behavior
The types should be resolved correctly.
Desktop (please complete the following information):
OS: MacOS
Browser: FF Dev Edition
Additional context
On a side note, would this help me render the json as a threeJS object?
Since this issue is so extensive, all I can say is to try various things.
On a side note, would this help me render the json as a threeJS object? ->
Although it does not provide direct help to three.js, it can at least help process data easily by converting it to json. And it feels compatible with that repository.
Describe the bug
Received this error when trying to import DxfParser.
Seems like the types are not being created correctly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The types should be resolved correctly.
Desktop (please complete the following information):
Additional context
On a side note, would this help me render the json as a threeJS object?
Edit: Workaround found:
Add this to your tsconfig
The text was updated successfully, but these errors were encountered: