You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
TypeError: mediapipe_selfie_segmentation__WEBPACK_IMPORTED_MODULE_5_.SelfieSegmentation is not a constructor
import { SelfieSegmentation } from '@mediapipe/selfie_segmentation';
In code:
const segmentationInstance = new SelfieSegmentation({ locateFile: (file: string) => { console.log('Loading MediaPipe file:', file); return
/mediapipe/selfie_segmentation/${file}; } });
It always whatever I do will generate TypeError: SelfieSegmentation is not a constructor
on Next12 and React17 works fine
on Next15 and React18 looks like
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions