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

Cannot set property 'disable' of undefined (tsconfig inheritance) #31

Open
YuliaTsareva opened this issue Sep 19, 2017 · 0 comments
Open

Comments

@YuliaTsareva
Copy link

It seems that tsconfigs with inheritance are not correctly processed.

If config looks like

{
    "extends": "./tsconfig",
    "angularCompilerOptions": {
        "genDir": "./compiled",
        "skipMetadataEmit": true
    }
}

an error occurs at text-based-loader/loader.ts because there is no compilerOptions.

Module build failed: TypeError: Cannot set property 'disable' of undefined

See https://github.com/shlomiassaf/ngc-webpack/blob/master/src/aot-clean-transformer/loader/text-based-loader/loader.ts#L269

For now I add empty compilerOptions as a workaround:

{
    "extends": "./tsconfig",
    "compilerOptions": {},
    "angularCompilerOptions": {
        "genDir": "./compiled",
        "skipMetadataEmit": true
    }
}
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

1 participant