【发布时间】:2018-01-29 23:47:31
【问题描述】:
我正在关注 this tutorial 创建一个 npm 包。这是我的 tsconfig.json:
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
"sourceMap": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
"outDir": "./dist",
"lib": ["es2015", "dom"]
},
"files": ["./lib/empty-text.ts"]
}
当我运行汇总时出现此错误:
rollup-plugin-typescript: Unknown compiler option 'lib'.
[!] Error: rollup-plugin-typescript: Couldn't process compiler options
Error: rollup-plugin-typescript: Couldn't process compiler options
at typescript (D:\sandbox\rollup-play\node_modules\rollup-plugin-typescript\dist\rollup-plugin-typescript.cjs.js:226:9)
at Object.<anonymous> (D:\sandbox\rollup-play\rollup.config.umd.js:45:9)
当我从compilerOptions 中删除lib 时,我得到一组不同的错误。我正在使用汇总 v0.8.1。这个版本不支持lib,如果支持,我做错了什么?
【问题讨论】:
-
你解决了这个错误吗?
标签: angularjs node.js npm rollupjs