---
# System prepended metadata

title: PID-982

---

This error message occurs when trying to import a named export from a module that only has a default export. In other words, the module does not have any named exports, only a default export. Therefore, importing a named export from such a module is not possible [1][2].

To fix this error, you can either change the import statement to import the default export, or modify the module to include a named export. If you want to import a named export from a module, make sure that the module actually exports the named export. If it does not, you can either add a named export to the module or change the import statement to import the default export [1][2].

Here's an example of how to import a default export from a module:

```javascript
// module.js
export default function myFunction() {
  // ...
}

// main.js
import myFunction from './module.js';
```

Here's an example of how to import a named export from a module:

```javascript
// module.js
export function myFunction() {
  // ...
}

// main.js
import { myFunction } from './module.js';
```

Note that in the second example, the module exports a named export (`myFunction`) and the import statement uses curly braces to import it. If the module only had a default export, the import statement would not use curly braces and would instead import the default export [1][2][3].