-
Notifications
You must be signed in to change notification settings - Fork 12k
ng generate web-worker breaks tsconfig.app.json #14776
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
Comments
Hi, I am unable to replicate this issue, can you please share your Thanks. |
Sure, here it is
|
(I updated it for the format it really had) |
Managed to replicate this if the {
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"types": []
},
"exclude": ["test.ts", "**/*.spec.ts"]
} |
I just tried to add
Should I open a new issue ? |
@ErwSim, yes please and kindly share a minimal repo. |
Also when I generated web worker I see |
I managed to fix it by correcting the "exclude" array, but then I immediately started seeing the same warning as @splincode |
Anybody working on this ticket? I've managed to reproduce the bug with the current version of https://github.com/stephanrauh/extended-pdf-viewer-showcase. Just clone it, run |
This doesn't cause the
This does:
|
I'm seeing the same issue. WARNING in new Worker() will only be bundled if passed a String. `Angular CLI: 8.3.0 Package Version@angular-devkit/architect 0.800.6 |
I think this is a problem with |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: ....Haven't tried web workers before so I do not known
Description
A clear and concise description of the problem...When I generate a web worker the file tsconfig.app.json is broken
Here is the file generated
🔬 Minimal Reproduction
ng generate web-worker save/stat-period/stat-period
CREATE tsconfig.worker.json (212 bytes)
CREATE src/app/save/stat-period/stat-period.worker.ts (157 bytes)
UPDATE src/tsconfig.app.json (180 bytes)
UPDATE angular.json (4228 bytes)
UPDATE src/app/save/stat-period/stat-period.component.ts (11072 bytes)
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: