Rollup-plugin-typescript2: 0.20.0 版本中的“错误:入口模块不能是外部的”

创建于 2019-03-12  ·  9评论  ·  资料来源: ezolenko/rollup-plugin-typescript2

会发生什么以及为什么会出错

构建不会通过,抛出以下错误:
Error: Entry module cannot be external

这似乎是由此处的更改引起的: https :

环境

签入这样的设置:

index.ts

export * from './index2';

index2.ts

// doesn't matter

版本

  • 打字稿:3.3.3333
  • 汇总:1.6.0
  • 汇总插件打字稿2:0.20.0

汇总配置文件

import typescript from 'rollup-plugin-typescript2';

export default {
  input: './index.ts',
  output: {
    format: 'cjs',
    file: './dist/build.js',
  },
  plugins: [
    typescript()
  ]
}

最有用的评论

呃,我应该真正阅读文档......现在尝试使用 0.20.1

所有9条评论

我也有同样的问题。 0.20.0因为这个破坏了我的构建!
我被困在0.19.0 😜

esm 格式同样的问题

我所有使用 rollup-plugin-typescript2 的项目都存在同样的问题。

同样的问题破坏建筑

版本 0.20.0 也有同样的问题

两天前我疯狂地搜索了这个并放弃了。 看来我没疯! 好极了! :tada:

呃,我应该真正阅读文档......现在尝试使用 0.20.1

0.20.1 有效: @jansiegel @ezolenko是否可以关闭该问题?

[email protected]一些问题

此页面是否有帮助?
0 / 5 - 0 等级