types and typeRoots in the tsconfig generate rollup error
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
upgrade your typescript first, then use the config options typescript: require('typescript') @SebasAcevedo
Let me know if this needs to be reopened, but looks like @TimeWaitsForNoOne found the fix.
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
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: