How I can create Object3d format from dxf-file?

Are you talking about this npm module?

Besides, any chances to demonstrate the issue with a live example? When the mentioned error message occurs, it means you pass an invalid object to scene.add(). If you think it’s a problem by the npm module, it’s probably best to file an issue at the respective github repo.