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
Angular: Add support for angular 13.1 #16978
Conversation
getTypescriptWorkerPlugin changed names to getDevServerConfig storybookjs#16977
Nx Cloud ReportCI ran the following commands for commit 44f78da. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
Since this is something that works for Storybook 6.4 also, should I create a pull request for 6.4 also? |
I'm not sure I'm convinced that I'm looking at this change (where getTSWorkerPlugin was removed) and it seems to me like the (This is all based on reading the code. I haven't done testing yet) |
It does not seem to be used any more angular/angular-cli@d526e87#diff-caf604ce425d7d0435ec967bfc2a7ddfcf2f8fe593865f7f24575b270d2c9361
I tried removing the call to getTypescriptWorkerPlugin completely and it seems to be working. But I need some help testing and reviewing, since this is my first dive into storybook, I don't feel confident saying its fixed. |
I also tried making this change, but I'm not seeing success when installing the package into the minimal repro of this issue. I get
Looking more at the Angular code change that caused this issue here, I think it's good that they added the IvyPlugin, but bad that they added the angular webpack loader for all files that match those paths. Changing line 61 of we angular-cli-13.x file to this fixed it for me:
This is a very "proof of concept" solution since I think there may be valid reasons for the Sorry, I don't have time to research and answer some of the questions I still have, but hopefully this helps. |
There seems to be more complex problems, such as errors saying files are missing from the compilation. |
I've also started looking. Another person could also make the test and tell me if it works? 🙏 🙏 🙏 if yes I could make the necessary to be also conditioned with angular version |
Sorry for the flip-flopping, but when I tried removing If I also remove
On my large project, removing |
See here for a new pull request which replaced this one. Also, to follow up on my "missing from the TypeScript compilation" issue mentioned above, I created this issue. I was able to narrow down the minimal reproduction of that error. |
No it's not working for me I'm also getting same error@literalpie |
Issue: #16977
What I did
Angular 13.1 changed the method name of
getTypescriptWorkerPlugin
togetDevServerConfig
which caused storybook to fail with
getTypescriptWorkerPlugin
method is undefined.I saw we have specific code for certain versions of Angular cli, so I simply copied this abstraction for angular 13.1