rollup-plugin-typescript icon indicating copy to clipboard operation
rollup-plugin-typescript copied to clipboard

types and typeRoots in the tsconfig generate rollup error

Open SebasAcevedo opened this issue 10 years ago • 4 comments

If you put types and/or typeRoots in your tsconfig, rollup will raise the folloring error:

Unknown compiler option 'typeRoots' Unknown compiler option 'types' Couldn't process compiler options

SebasAcevedo avatar Nov 15 '16 01:11 SebasAcevedo

upgrade your typescript first, then use the config options typescript: require('typescript') @SebasAcevedo

TimeWaitsForNoOne avatar Nov 24 '16 10:11 TimeWaitsForNoOne

Let me know if this needs to be reopened, but looks like @TimeWaitsForNoOne found the fix.

PaulBGD avatar May 23 '17 04:05 PaulBGD

The issue is still there, this is my tsconfig.json

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "ES6",
    "jsx": "react",
    "sourceMap": true,
    "noImplicitAny": true,
    "outDir": "./dist",
    "removeComments": true,
    "typeRoots": ["./node_modules/@types"]
  },
  "include": ["src/**/*", "tests/**/*"],
  "exclude": ["node_modules", "**/*-spec.ts"]
}

This is the command I execute: rollup -c

LukasBombach avatar Jan 15 '18 20:01 LukasBombach

Hey folks (this is a canned reply, but we mean it!). Thanks to everyone who participated in this issue. We're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and we have to do some spring cleaning of the issues to make that happen. We're going to close this one, but it doesn't mean that it's not still valid. We've got some time yet before the move while we resolve pending Pull Requests, so if this issue is still relevant, please @ me and I'll make sure it gets transferred to the new repo. :beer:

shellscape avatar Nov 24 '19 16:11 shellscape