Skip to content

Invalid tsconfig.app.json after generating web worker #15037

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

Closed
christianlundberg opened this issue Jul 10, 2019 · 2 comments
Closed

Invalid tsconfig.app.json after generating web worker #15037

christianlundberg opened this issue Jul 10, 2019 · 2 comments

Comments

@christianlundberg
Copy link

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Angular only began official support of web workers so I guess not.

Description

After running ng g web-worker sheet --project=enterprise, the tsconfig.app.json looks like this:

{
    "extends": "./tsconfig.json",
    "compilerOptions": {
        "outDir": "../../dist/out-tsc",
        "types": []
    },
    "exclude": ["src/test.ts", "**/*.spec.ts",]    "src/**/*.worker.ts"
,
    "include": ["**/*.ts"]
}

Notice "src/**/*.worker.ts" was placed outside of the exclude array. This causes plenty of errors upon building the app which is how I discovered the error.

🌍 Your Environment


Angular CLI: 8.1.0
Node: 12.3.1
OS: win32 x64
Angular: 8.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.800.1
@angular-devkit/build-angular      0.801.0
@angular-devkit/build-optimizer    0.801.0
@angular-devkit/build-webpack      0.801.0
@angular-devkit/core               8.0.1
@angular-devkit/schematics         8.0.1
@angular/cdk                       8.0.0
@angular/flex-layout               8.0.0-beta.26
@angular/material                  8.0.0
@angular/material-moment-adapter   8.0.0
@ngtools/webpack                   8.1.0
@schematics/angular                8.0.1
@schematics/update                 0.801.0
rxjs                               6.5.2
typescript                         3.4.5
webpack                            4.35.2
@alan-agius4
Copy link
Collaborator

Duplicate of #14776

@alan-agius4 alan-agius4 marked this as a duplicate of #14776 Jul 10, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants