【发布时间】:2022-11-05 20:00:31
【问题描述】:
我收到此错误:
Syntax Error: ambiguous indirect export
在火狐中。可悲的是,在 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"
我错过了什么?
【问题讨论】:
标签: javascript html typescript module