react-audio-visualize icon indicating copy to clipboard operation
react-audio-visualize copied to clipboard

Cannot even import the package

Open johannessram opened this issue 10 months ago • 4 comments

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.

johannessram avatar Mar 09 '25 15:03 johannessram

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.

AbiramanK avatar Mar 21 '25 04:03 AbiramanK

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 avatar Apr 28 '25 13:04 anmol098

@anmol098, Please refer this issue https://github.com/samhirtarif/react-audio-visualize/issues/33

AbiramanK avatar Apr 28 '25 14:04 AbiramanK

not compatible with react 19 as per #33 - can pin to this pr since it is unclear if this'll get merged

chasemcdo avatar May 30 '25 22:05 chasemcdo