Next.js?
See original GitHub issueI’m trying to use this with next.js. Though I can’t because of this error:
import './polyfills.js';
^^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
As far as I’m concerned, it’s coming from this line: import { Canvas } from 'react-three-fiber';
Anybody else managed to get it working with Next?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Next.js by Vercel - The React Framework
Production grade React applications that scale. The world's leading companies use Next.js by Vercel to build static and dynamic websites and web ...
Read more >vercel/next.js: The React Framework - GitHub
Documentation. Visit https://nextjs.org/docs to view the full documentation. Who is using Next.js?
Read more >Next.js (@nextjs) · Twitter
We've updated `create-next-app` with a new look.
Try it out today → vercel.fyi/nextjs-templ… pic.twitter.com/Mt8EbqM…
Read more >Next.js - Wikipedia
Next.js is an open-source web development framework created by Vercel enabling React-based web applications with server-side rendering and generating static ...
Read more >Next.js - npm
The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects. To chat with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Works like a charm! 😍
this is b/c RO didnt export cjs. they have a beta version that does this, it’s being used in r3f@beta https://spectrum.chat/react-three-fiber/general/nextjs-build-using-react-three-fiber~535837b1-83c8-4b3b-9084-9aa8a221cef4