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

export 'ParametricGeometry' (imported as 'ParametricGeometry') was not found in 'three' #178

Closed
tombombadilom opened this issue Sep 1, 2022 · 5 comments · Fixed by #180
Labels
bug Something isn't working released

Comments

@tombombadilom
Copy link

react 18.2.0
@react-three/fiber v8.6.2
@react-three/drei v9.25.3
three v0.144.0
three-stdlib v2.14.3

hi I have those 3 errors from three-stdlib

`ERROR in ./node_modules/three-stdlib/geometries/ParametricGeometries.js 101:2-25

export 'ParametricGeometry' (imported as 'ParametricGeometry') was not found in 'three' (possible exports: ...)`

`ERROR in ./node_modules/three-stdlib/geometries/ParametricGeometries.js 161:2-25

export 'ParametricGeometry' (imported as 'ParametricGeometry') was not found in 'three' (possible exports: ....`

`ERROR in ./node_modules/three-stdlib/geometries/ParametricGeometries.js 180:2-25

export 'ParametricGeometry' (imported as 'ParametricGeometry') was not found in 'three' (possible exports: ...`

@tombombadilom tombombadilom added the bug Something isn't working label Sep 1, 2022
@Shtoner
Copy link

Shtoner commented Sep 2, 2022

Same here was just trying to import orbitcontrols and got lost in error messages.

@tombombadilom
Copy link
Author

just with this import, without rendering anything I get the error

import { Canvas, useFrame, useThree } from "@react-three/fiber";
import { Image, Scroll, ScrollControls, useScroll } from "@react-three/drei";

@DaanKorver
Copy link

Also facing the same issue.

@ridhof
Copy link

ridhof commented Sep 3, 2022

facing the same issue, with code below:

import * as Drei from "@react-three/drei";

export default () => {
  const { scene } = Drei.useGLTF("http://localhost:3000/monkey.glb");
  console.log(scene);

  return (
    <h1>Test</h1>
  );
};

error

No matching export in "node_modules/three/build/three.module.js" for import "ParametricGeometry"

    node_modules/three-stdlib/geometries/ParametricGeometries.js:1:18:
      1 │ import { Vector3, ParametricGeometry, BufferGeometry,...
        ╵                   ~~~~~~~~~~~~~~~~~~

package.json

"dependencies": {
    "@react-three/drei": "^9.25.3",
    "@react-three/fiber": "^8.6.2",
    "@types/three": "^0.144.0",
    "astro": "^1.1.5"
  },
  "devDependencies": {
    "@astrojs/react": "^1.1.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "typescript": "^4.8.2"
  }

@github-actions
Copy link

github-actions bot commented Sep 3, 2022

🎉 This issue has been resolved in version 2.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants