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
After installing with yarn add react-three-gui, I attempted to add it to my scene like this:
import { Controls, useControls } from "react-three-gui";
function App() {
return (
<Controls.Provider>
<Controls.Canvas ></Controls.Canvas>
<Controls />
</Controls.Provider>
);
}
When I write Controls.Canvas, it returns:
Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `Context.Consumer`.
at createFiberFromTypeAndProps (react-dom.development.js:25058)
at createFiberFromElement (react-dom.development.js:25086)
...
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Where am I getting this wrong?
The text was updated successfully, but these errors were encountered:
After installing with
yarn add react-three-gui
, I attempted to add it to my scene like this:When I write
Controls.Canvas
, it returns:Where am I getting this wrong?
The text was updated successfully, but these errors were encountered: