Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript and styled systems install not working #140

Open
jonrrivera opened this issue Jun 13, 2023 · 2 comments
Open

Typescript and styled systems install not working #140

jonrrivera opened this issue Jun 13, 2023 · 2 comments

Comments

@jonrrivera
Copy link

when installing yarn create r3f-app next my-3d-app styled -ts and running yarn dev I don't see any of the r3f components rendering or any styled systems components being applied. Am I doing something wrong?

Screenshot 2023-06-12 at 10 40 29 PM
@jordan-loeser
Copy link

I'm having the same issue here; it looks like the install is not actually generating any styled components, and the Tailwind helper classes are still being used.

@wnek
Copy link

wnek commented Jul 13, 2023

I think components are there, but not visible because of the CSS. I managed to display it by adding a class to the "View" component.

page.tsx

<View orbit className='viewSize'>
   <Suspense fallback={null}>
      <Dog scale={2} position={[0, -1.6, 0]} rotation={[0.0, -0.3, 0]} />
      <Common color={'lightpink'} />
   </Suspense>
</View>

global.css

.viewSize {
  height: 40vh;
  width: 80vw;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants