'./add.js'has no exported member
add. Did you mean to use
import add from "./add.js"instead?
Broken Code ❌
Fixed Code ✔️
There are multiple ways to fix this. The simplest would be turning your import statement into a default import:
An alternative solution would be using a named export:
You could actually use a named export and a default export in the same file: