r3f-spline icon indicating copy to clipboard operation
r3f-spline copied to clipboard

Failed to compile - mergeBufferGeometries

Open scdozer opened this issue 1 year ago • 27 comments

Failed to compile ./node_modules/@splinetool/loader/build/SplineLoader.js Attempted import error: 'mergeBufferGeometries' is not exported from 'three/examples/jsm/utils/BufferGeometryUtils.js' (imported as 'pI'). This error occurred during the build process and can only be dismissed by fixing the error.

i think maybe its just mergeGeometries ?

https://threejs.org/docs/#examples/en/utils/BufferGeometryUtils.mergeBufferGeometries

scdozer avatar Feb 20 '24 23:02 scdozer

same issue!

danpliego avatar Feb 21 '24 20:02 danpliego

Same issue 😭

rinkevich avatar Feb 24 '24 07:02 rinkevich

same issue :')

Vyom-V avatar Feb 25 '24 12:02 Vyom-V

as workarounds you can:

  • downgrade threejs peerDependency to 0.151.0
  • replace all occurrences of "mergeBufferGeometries" with "mergeGeometries" in built files and push it to a new github repository and install that repo instead

craxrev avatar Mar 06 '24 09:03 craxrev

same issue

david-mcbacon avatar Mar 08 '24 15:03 david-mcbacon

same issue as well

A1aNNN avatar Mar 12 '24 03:03 A1aNNN

It was resolved for me after I switched versions for three and @splinetool/loader. I switched from [email protected] to [email protected] and from @splinetool/[email protected] to @splinetool/[email protected]

A1aNNN avatar Mar 12 '24 09:03 A1aNNN

It was resolved for me after I switched versions for three. I switched from [email protected] to [email protected]

When I tried to swith to older three versions I got this error instead

⨯ node_modules/three/build/three.module.js (40376:0) @ eval ⨯ unhandledRejection: ReferenceError: ProgressEvent is not defined

david-mcbacon avatar Mar 12 '24 11:03 david-mcbacon

spline is broken, 2 years of un-updated code

xardit avatar Apr 12 '24 07:04 xardit

same issue, yet no solved :(

Noiztbander avatar Apr 22 '24 11:04 Noiztbander

same issue😔

Crazy0717 avatar Jun 18 '24 15:06 Crazy0717

same issue

dayatwork avatar Jun 27 '24 02:06 dayatwork

same issue - has anyone found a temporary fix? Downgrading didn't work for me

archodev avatar Jul 02 '24 22:07 archodev

same issue

MelchnerRoman avatar Jul 10 '24 12:07 MelchnerRoman

same issue😔

AITuring avatar Jul 13 '24 14:07 AITuring

same issue here. any updates?

BeckyStreetAudio avatar Aug 05 '24 16:08 BeckyStreetAudio

same issue, can anyone fix that?

luxuereal avatar Aug 10 '24 12:08 luxuereal

same issue

dayatwork avatar Aug 27 '24 14:08 dayatwork

same issue! please fix it!

ansonchaan avatar Sep 13 '24 04:09 ansonchaan

Same issue!! Come on Spline!!!

TyByers21 avatar Sep 24 '24 20:09 TyByers21

Same issue.

stevemer avatar Oct 09 '24 01:10 stevemer

Same issue.

mike-hendriks avatar Oct 10 '24 07:10 mike-hendriks

Just encountered this problem as well for the first time, I need a fix asap.

aaadamgo avatar Oct 21 '24 11:10 aaadamgo

I was able to resolve this setting my three version to 0.149.0 from 0.169.0.

jackkingham-au avatar Oct 22 '24 15:10 jackkingham-au

I was able to resolve this setting my three version to 0.149.0 from 0.169.0.

I tried that too but it didn't work for me. I'm in Nextjs.

However, the only way around this entire issue I've found a couple of days ago, is to export as plain Three, instead of R3F, convert to a react component, then write my own animations (I just wanted to animate the camera). I don't have any issues now.

aaadamgo avatar Oct 23 '24 10:10 aaadamgo

same here. pretty poor support by spline :/

simonwidjaja avatar Nov 06 '24 12:11 simonwidjaja

this is unmaintained correct? i dont see any activity

javierfuentesm avatar Jan 20 '25 01:01 javierfuentesm