`Error: Entry module cannot be external` in version 0.20.0

See original GitHub issue

What happens and why it is wrong

The build won’t go through, throws the following error: Error: Entry module cannot be external

This seems to be caused by a change here: https://github.com/ezolenko/rollup-plugin-typescript2/commit/29b13a089b6a1a86574255779277d1e06414f557#diff-f41e9d04a45c83f3b6f6e630f10117feR118

Environment

Checked in a setup like this:

index.ts:

export * from './index2';

index2.ts:

// doesn't matter

Versions

  • typescript: 3.3.3333
  • rollup: 1.6.0
  • rollup-plugin-typescript2: 0.20.0

rollup.config.js

import typescript from 'rollup-plugin-typescript2';

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
ezolenkocommented, May 11, 2022

Ugh, I should have actually read the docs… Try now with 0.20.1

4reactions
mesqueebcommented, Mar 12, 2019

I have the same problem. 0.20.0 breaks my build because of this! I’m stuck on 0.19.0 😜

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deal with external modules when compiling TypeScript?
By changing module resolution to node and setting baseUrl in tsconfig.json , TypeScript has no problem in using STE with non-relative import:
Read more >
Command Reference — Spack 0.20.0.dev0 documentation
A flexible package manager that supports multiple versions, ... external. fetch. find ... generate input for module command (instead of a shell script)....
Read more >
fabric8io/docker-maven-plugin
An external Dockerfile can be specified in which Maven properties can be inserted. This is also the default mode, if only a single...
Read more >
Pyodide - Read the Docs
console.error( Registration failed with ${error} ); ... easier to include external libraries in your service workers via ES module imports.
Read more >
IO tools (text, CSV, HDF5, …) — pandas 1.5.2 documentation
Changed in version 1.2.0: Previous versions forwarded dict entries for 'gzip' ... pandas cannot natively represent a column or index with mixed timezones....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found