-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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: Fix for renamed method in angular 13.1 #17032
Angular: Fix for renamed method in angular 13.1 #17032
Conversation
☁️ Nx Cloud ReportCI ran the following commands for commit 854e374. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
edc925f
to
854e374
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @mandarini !! I like the simplicity of this one vs the previous PR.
@storybookjs/angular WDYT?
See this comment. As far as I know, removing the I do like the idea of using a ternary operator instead of a whole new config though. I think we might be able to also combine the configs for 12.2.x and 13.x since there is only a small difference between the two. |
Angular: Fix for renamed method in angular 13.1
Issue: #16977
Broken build when on Angular v.
13,1
--> comment: #16977 (comment)
Quoting comment:
The problem is that in angular 13.1 the function
getTypescriptWorkerPlugin
changed names togetDevServerConfig
I was able to get it running by replacing all occurances of
getTypescriptWorkerPlugin
What I did
Renamed the method to the new name - it's a bit ugly because it's using a ternary to see if old one exists - if not use new one. More proper way would be to check Angular version from lock file I guess...
How to test
Storybook for Angular
13.1
can now run without throwing the errorTypeError: getTypescriptWorkerPlugin is not a function
.Disclaimer
I am not sure if we would need to add an extra check of the Angular version that's actually installed..