firtoz / react-three-renderer-fiber

Porting R3R to use React Fiber
MIT License
94 stars 10 forks source link

Cannot find module './IReactThreeRendererElement'. #89

Open falkolab opened 5 years ago

falkolab commented 5 years ago

I trying to use your library from typescript project. But I got compilation error:

.../node_modules/react-three-renderer-fiber/lib/core/renderer/hostDescriptors/common/cameraBase.d.ts
(3,40): Cannot find module './IReactThreeRendererElement'.
toxicFork commented 5 years ago

Hello @falkolab this version is practically unsupported to work in most conditions, but if you provide details on how you are using it I can check if it could be made to work for your use case :)

Can you please provide the relevant parts of your package json, typescript config, and which files you are including to be used? A link to a repository could help too.

I am away on a work trip at the moment so I may only be able to take a look in an evening next week, but if others are around they can probably respond a bit sooner.

falkolab commented 5 years ago

I'm looking for more production ready solutions for my project. And I doing some experiment works. Sorry I can't provide it to you. That is some part that cause error what I mention about:

import React3 from "react-three-renderer-fiber/lib/bridge/React3";
import webGLRenderer from "react-three-renderer-fiber/lib/core/renderer/hostDescriptors/descriptors/webGLRenderer";

...
return <React3>
      <webGLRenderer
        width={width}
        height={height}
      >
...
toxicFork commented 5 years ago

Apologies for the late reply, unfortunately I could not find out what is causing the problem.