我在 http://plnkr.co/edit
中创建了一个 angular2
应用程序。一切正常。我尝试导出一个 interface
,但出现错误,如 Uncaught SyntaxError: Unexpected token export
- 我不知道这里到底发生了什么错误。
谁能帮我解决这个问题。我提供的路径是 import
list-item
的正确路径。
最佳答案
添加
meta: { 'src/list-item.ts': { format: 'es6' }},
到你的 SystemJS 配置
关于typescript - `plnkr` - 导出 typescript `Unexpected token export` 时出现错误 `interface`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36114770/