I'm facing an issue here: when I import a component from the library, for example the Audio component, when i build my application, throws the following error:
import { Oval } from "react-loader-spinner";
^^^^
SyntaxError: Named export 'Oval' not found. The requested module 'react-loader-spinner' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'react-loader-spinner';
const { Oval } = pkg;
Hello folks, how are you?
I'm facing an issue here: when I import a component from the library, for example the
Audio
component, when i build my application, throws the following error:Here's how I'm importing it:
import { Oval } from 'react-loader-spinner';
It's not clear for me which problem is. I'm using Remix v2 and Bun 1.0.15. My
package.json
has thetype
asmodule
specified.Thanks in advance