Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutDir not working on 1.2.1 #9

Closed
jrgleason opened this issue Sep 26, 2016 · 3 comments
Closed

OutDir not working on 1.2.1 #9

jrgleason opened this issue Sep 26, 2016 · 3 comments

Comments

@jrgleason
Copy link

Similar to issue 7.

"karma-typescript-preprocessor2": "^1.2.1",

I have the following tsconfig file

{
    "compilerOptions": {
       "outDir": "target",
       "target": "es5",
       "module": "commonjs",
       "moduleResolution": "node",
       "sourceMap": true,
       "emitDecoratorMetadata": true,
       "experimentalDecorators": true,
       "removeComments": false,
       "noImplicitAny": true,
       "suppressImplicitAnyIndexErrors": true
    },
    "exclude": [
        "target",
        "node_modules"
    ]
}

And I include it like the following...

typescriptPreprocessor: {
  tsconfigPath: './tsconfig.json'
}

But when I run karma I see...

error TS5024: Compiler option 'outDir' requires a value of type string.

@jrgleason
Copy link
Author

Couldn't we just default the value to something valid like

outDir        : "./",

@jrgleason
Copy link
Author

Anyone happen to have a link for a way to debug the preprocessor? Now I am getting...

/* preprocessor:typescript --> This file was not compiled */

@Haringat
Copy link

I'm having the same problem. Looking at the lodash doc (specifically that for extend/assignIn) at https://lodash.com/docs/4.16.4#assignIn it looks to me like in index.js:53

_.extend(compilerOptions, defultCompilerOptions);

should be

_.extend(defultCompilerOptions, compilerOptions);

(note: you misspelled "default" but since you misspelled it everywhere that shuldn't be the issue)

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

No branches or pull requests

3 participants