-
Hello Internet - when I'm importing Any other library works fine. I installed it and reinstalled it. I'm using Next.js as a framework. |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Jan 13, 2021
Replies: 1 comment 2 replies
-
OC is a threejs module, they have raw, uncompiled import statements. you need to teach next to transpile these, there's a build step or something for it. EDIT: People coming across this, make sure to check this out first https://github.com/vercel/next.js/tree/canary/examples/with-three-js |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
j-o-o
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OC is a threejs module, they have raw, uncompiled import statements. you need to teach next to transpile these, there's a build step or something for it.
EDIT: People coming across this, make sure to check this out first https://github.com/vercel/next.js/tree/canary/examples/with-three-js