Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    ES modules use export, not exports.
    – Teemu
    Commented Mar 15, 2022 at 7:52
  • 3
    That is not in my hand. It's nuxt module. Third party package :( Commented Mar 15, 2022 at 8:23
  • 1
    ok. with "type": "module" my main.js is having first line as below. That is causing error. So how to avoid that. Object.defineProperty(exports, "__esModule", { value: true }) Commented Mar 15, 2022 at 8:30