Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Lib option results in an error #114

Closed
kirill-konshin opened this issue Mar 1, 2018 · 1 comment · Fixed by #124
Closed

Lib option results in an error #114

kirill-konshin opened this issue Mar 1, 2018 · 1 comment · Fixed by #124

Comments

@kirill-konshin
Copy link

I have following tsconfig.json:

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "noImplicitAny": false,
    "preserveConstEnums": true,
    "outDir": "lib",
    "sourceMap": true,
    "lib": [
      "dom",
      "es2015"
    ]
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}
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
@ghoullier
Copy link

Hi @kirill-konshin !

The problem come from rollup-plugin-typescript dependency typescript^1.8.9

If you want to use your project based typescript version you have to use the following config:

import ts from 'rollup-plugin-typescript';
import typescript from 'typescript'

const config = {
  plugins: [
    ts({
      typescript
    })
  ]
};

export default config;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants