pmndrs / react-three-editor

🔌 A one of a kind scene editor that writes changes back into your code
MIT License
621 stars 40 forks source link

ERROR: No matching export `EditorPanel` #33

Closed krispya closed 1 year ago

krispya commented 1 year ago

When running the R3F example it gets the following error where EditorPanel is not exported. What would be the proper way to fix this?

example:dev: X [ERROR] No matching export in "../../packages/editor/src/fiber/index.ts" for import "EditorPanel"
example:dev:
example:dev:     src/demos/Gestures.tsx:5:2:
example:dev:       5 │   EditorPanel,
example:dev:         ╵   ~~~~~~~~~~~
example:dev:
example:dev: X [ERROR] No matching export in "../../packages/editor/src/fiber/index.ts" for import "EditorPanel"
example:dev:
example:dev:     src/demos/Gltf.tsx:2:27:
example:dev:       2 │ import { Canvas, editable, EditorPanel } from "@react-three/editor/...
example:dev:         ╵                            ~~~~~~~~~~~
example:dev:
example:dev: X [ERROR] No matching export in "../../packages/editor/src/fiber/index.ts" for import "EditorPanel"
example:dev:
example:dev:     src/demos/Pointcloud.tsx:3:27:
example:dev:       3 │ import { Canvas, editable, EditorPanel } from "@react-three/editor/...
example:dev:         ╵                            ~~~~~~~~~~~
example:dev:
example:dev: Build failed with 3 errors:
example:dev: src/demos/Gestures.tsx:5:2: ERROR: No matching export in "../../packages/editor/src/fiber/index.ts" for import "EditorPanel"
example:dev: src/demos/Gltf.tsx:2:27: ERROR: No matching export in "../../packages/editor/src/fiber/index.ts" for import "EditorPanel"
example:dev: src/demos/Pointcloud.tsx:3:27: ERROR: No matching export in "../../packages/editor/src/fiber/index.ts" for import "EditorPanel"
nksaraf commented 1 year ago

Ohh this is really old code.. hadnt played with the r3f example in a while.. Fix is to actually use the latest APIs for that stuff

krispya commented 1 year ago

Which app should I look at for an example on how to use the latest API?