Comments (5)
same issue. It might be something wrong with r3f extension I think...
App.jsx
import * as THREE from 'three'
import React, { useRef, useState } from 'react'
import { Canvas, useFrame } from '@react-three/fiber'
import { getProject } from '@theatre/core'
import extension from '@theatre/r3f/dist/extension';
import { SheetProvider } from '@theatre/r3f'
import studio from '@theatre/studio'
studio.initialize()
studio.extend(extension)
import "./app.css"
// our Theatre.js project sheet, we'll use this later
const demoSheet = getProject('Demo Project').sheet('Demo Sheet')
const App = () => {
return (
<Canvas camera={{position: [5, 5, -5], fov: 75}}>
<SheetProvider sheet={demoSheet}>
<ambientLight/>
<pointLight position={[10, 10, 10]}/>
<mesh>
<boxGeometry args={[1, 1, 1]}/>
<meshStandardMaterial color="orange"/>
</mesh>
</SheetProvider>
</Canvas>
)
}
export default App
package.json
{
"name": "theatre-app",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@react-three/fiber": "^8.14.5",
"@theatre/core": "^0.5.1",
"@theatre/r3f": "^0.6.2",
"@theatre/studio": "^0.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"three": "^0.157.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/three": "^0.156.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.45.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"vite": "^4.4.5"
}
}
from theatre.
Folks, can you share a reproduction on codesandbox/stackblitz?
from theatre.
Same problem here, after loading the theater editor all seemed to be working fine... But when I tried to create a snapshot with the camera icon, the same weird error. I hope it can be solved in further releases. Thanks for the good work!
from theatre.
Had the same issue, very disappointing.
from theatre.
Related Issues (20)
- Type error on `<PerspectiveCamera/>` component from `@theatre/r3f` HOT 1
- PlaneBufferGeometry being renamed in three.js 0.154.0 breaks @theatre/r3f/dist/extension HOT 2
- Support for expressions
- @theatre/r3f alone
- @theatre/r3f extension breaks with vite HOT 2
- insert sequence HOT 2
- how to set props value in sequence by code? HOT 4
- Move a key to a new namespace HOT 3
- really good work
- Context error when using drei PositionalAudio (R3F)
- Free 3D studio built with BabylonJS and Theatre-JS HOT 1
- Mobile Friendly UI
- Feature Request: Ability to Translate Keyframes by Specifying Time Duration HOT 4
- Bug - Bezier curve drag bug HOT 1
- Initial value of boolean prop
- Animation does not work in WebXR HOT 5
- Can't run three.js basic example HOT 4
- `yarn cli build` fails HOT 1
- sequence performance optimization HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theatre.