I am getting this error:
Syntax Error: ambiguous indirect export
in Firefox. Sadly there is nothing to find on Google...
<script type="module">
import {someFunctionINeed} from "./js/functions.js";
...
</script>
export function someFunctionINeed(cname) { ... }
tsconfig.json:"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"watch": true,
"removeComments": true
}
package.json:"type": "module"
What did I miss?
Ok, I found the solution: It's important to set these properties in the tsconfig.json:
"module": "ESNext",
"target": "esnext",
Otherwise it doesn't "compile" the way I need it to support importing/exporting of functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With