Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure #18

Open
Mupli opened this issue May 14, 2024 · 0 comments
Open

Not sure #18

Mupli opened this issue May 14, 2024 · 0 comments

Comments

@Mupli
Copy link

Mupli commented May 14, 2024

Hi,
I'm getting "ReferenceError: require is not defined in ES module scope, you can use import instead"

babel.config.js

export default (api) => {
    api.cache(false);
    return {
        presets: ["@babel/preset-env", "@babel/preset-react"],
       
    };
};

package.json

    "type": "module",
import { Mupli } from "mupli-core";

Error:

...app.js:3
var _mupliCore = require("mupli-core");

ReferenceError: require is not defined in ES module scope, you can use import instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant