Skip to content
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

Storybook fails to restart in Angular tutorial at config section #104

Closed
jocfico opened this issue Jun 11, 2019 · 6 comments
Closed

Storybook fails to restart in Angular tutorial at config section #104

jocfico opened this issue Jun 11, 2019 · 6 comments

Comments

@jocfico
Copy link

jocfico commented Jun 11, 2019

In the following section of the Angular tutorial:

https://github.com/chromaui/learnstorybook.com/blob/master/content/angular/en/simple-component.md#config

When prompted to restart the Storybook server with yarn run storybook the following errors are generated:

ERROR in ./src/styles.less (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/less-loader/dist/cjs.js??ref--10-3!./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js!./src/styles.less)
Module build failed (from ./node_modules/less-loader/dist/cjs.js):

var content = require("!!../node_modules/css-loader/dist/cjs.js!../node_modules/less-loader/dist/cjs.js!./styles.less");
          ^
Unrecognised input
      in /Users/blah/blah/blah/blah/taskbox/src/styles.less (line 2, column 12)
 @ ./src/styles.less 2:14-356 21:1-42:3 22:19-361
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/config.js ./node_modules/webpack-hot-middleware/client.js?reload=true ./src/styles.less
@drew-codes
Copy link

Exact same issue here

@domyen
Copy link
Member

domyen commented Sep 25, 2019

Hey @drew-codes @jocfico I cowrote the guide in React but am not that familiar with Angular which is why this issue has languished. Any chance y'all can help us get to the bottom of it and submit a PR? That would help the Storybook Angular community immensely. 🙏

cc @alterx

@davevr
Copy link

davevr commented Oct 11, 2019

Same issue here as well.

@jonniebigodes
Copy link
Collaborator

jonniebigodes commented Oct 13, 2019

I'm currently testing this and i think in the following days i'm able to provide a solution for this issue. I'm going over the documentation as i type this and see how to fit in the solution

@jonniebigodes
Copy link
Collaborator

@davevr i've been testing and it seems that the problem is fixed with a new version of Storybook, if you can, update the your dependencies and you should not see the issue anymore, you can read more about it here.

@jonniebigodes
Copy link
Collaborator

@domyen and @tmeasday i'm going to close this as this is already solved with #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants