-
-
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
Error in HtmlWebpackPlugin with latest alpha #3399
Comments
I don't have this specific issue when running the angular-cli example (have other warnings, but everything is working) |
@igor-dv Try to do the following in the angular-cli example:
window.foo = 'bar';
...
"scripts": [
"./lib/index.js"
],
...
This is the outout I got after doing the above:
|
I was able to reproduce it that way. Probably we need to upgrade to a new version of the cli that already supports webpack 4. After a brief checking, there was a lot of refactoring in there, and it breaks all our assumptions about the angular-cli's webpack part. @Quramy, I remember you talked about it, do you have any other details about this? |
@igor-dv what do you mean? |
There are webpack configuration parts in the v1.7 of angular-cli that we are using in code here: https://github.com/storybooks/storybook/blob/master/app/angular/src/server/angular-cli_config.js#L46 Since v1.7 is dependant on webpack < 4, we are getting all these In order to fix this, we need to upgrade to a new version of angular-cli (v6 I think), but there are a lot of breaking changes out there, and one of them is that |
And there is the following comment in https://github.com/angular/devkit/blob/master/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts#L2
Can we use these webpack configurators as "public" APIs? 🤔 Also .anglar-cli.json in v5 has been renamed to angular.json. They are not compatible. If we support both cli v5 and cli v6, I think that handling of json becomes complicated. |
probably they want to clean up unneeded things =)
I think yes. Are you already familiar with a new CLI ? Also, they are in the RC now.
IMO we shouldn't support both. Storybook v4 will be compatible with a new angular-cli version and with a new webpack version. That's the breaking change all over the place, so we just can't support everything. |
I had the same problem. And I confirm that upgrade to angular 6 fix this problem. |
Should the |
I think that it must installed and addend in package.json (i created a new project from scratch to compare the package.json). this is my package.json:
|
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Released as |
If you are reporting a bug or requesting support, start here:
Bug or support request summary
Storybook for Angular doesn't start up with
4.0.0-alpha3
- stuck on95% emitting HtmlWebpackPlugin
for a while, than fails.Please provide issue details here - What did you expect to happen? What happened instead?
After configuring a repo the same way as the angular-cli example, running
npm run storybook
shows the below:Steps to reproduce
Please provide necessary steps for reproduction of this issue. Describe the exact steps a maintainer has to take to make the problem occur. If the problem is non-trivial to reproduce, please link a repository or provide some code snippets.
(A screencast can be useful for visual bugs, but it is not a substitute for a textual description.)
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/angular
4.0.0-alpha2 (as well as 4.0.0-alpha3)@angular/cli
1.7.4@angular/<all except cli>
5.1.2Affected platforms
Screenshots / Screencast / Code Snippets (Optional)
All of the
.storybook
folder looks 100% the same as the previously mentioned example repo.:angular-cli.json
:End bug report support request - delete the rest below
If you are creating a issue to track work to be completed, start here:
Work summary
Please provide a description of the work to be completed here - Include some context as to why something needs to be done and link any related tickets.
Where to start
Please list the file(s) a contributor needs to figure out where to start work and include any docs or tutorials that may be applicable.
@storybook\core\node_modules\webpack\lib\Stats.js:522
. Inspectingchunk.groupsIterable
shows it isundefined
.Additionally, removing all
scripts
entries from theangular-cli.json
seems to "solve" the issue (i.e. Storybook starts).Acceptance criteria
Please include a checklist of the requirements necessary to close this ticket. The work should be narrowly scoped and limited to a few hours worth by an experienced developer at the most.
Who to contact
Add yourself and/or people who are familiar with the code changes and requirements. These people should be able to review the completed code.
End work issue - please tag this issue with the correct status and type labels
The text was updated successfully, but these errors were encountered: