Cannot even import the package
Uncaught TypeError: O is undefined
Even if we do nothing but import the package
import { LiveAudioVisualizer } from 'react-audio-visualize';
import { AudioVisualizer } from 'react-audio-visualize';
This error is thrown.
I already tried adding nothing but it to the file, but the error persists.
Hi @johannessram I have checked that it's working fine.
If possible can you share the full error, so that it can be easy to understand the problem.
Also specify the tech stack version you're using.
TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher') at react-audio-visualize.es.js:194:15 at mr (react-audio-visualize.es.js:625:3) at [project]/node_modules/react-audio-visualize/dist/react-audio-visualize.es.js [app-client] (:4001/ecmascript) (http://localhost:4001/next/static/chunks/node_modules_db10793b..js:14923:91) at dev-base.ts:201:21 at runModuleExecutionHooks (dev-base.ts:261:5) at instantiateModule (dev-base.ts:199:5) at getOrInstantiateModuleFromParent (dev-base.ts:128:10) at esmImport (runtime-utils.ts:214:18)
The above error occurred in the <ClientPageRoot> component. It was handled by the <ErrorBoundaryHandler> error boundary.
@anmol098, Please refer this issue https://github.com/samhirtarif/react-audio-visualize/issues/33
not compatible with react 19 as per #33 - can pin to this pr since it is unclear if this'll get merged