storybook 5.0.5 upgrade broken on load svg and png

Created on 27 Mar 2019  Â·  3Comments  Â·  Source: storybookjs/storybook

Describe the bug


ERROR in ./icon/sortIcon/images/sort_asc.png 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.

ERROR in ./icon/viewFileIcon/view-Active.svg 1:0
Module parse failed: Unexpected token (1:0)

Expected behavior
Everything is fine before upgrading to 5.0.5. It was 5.0.1

System:

  • OS: [MacOS]
  • Device: [ Macbook Pro 2015]
  • Framework: [react]
  • Version: [5.0.5]
babel / webpack question / support

All 3 comments

I'm going to downgrade back to 5.0.1. Now all are back to normal

There was a bugfix in 5.0.2 and I'm guessing you're using extend-mode webpack configuration. If you convert to full-control it should work. More info:

https://github.com/storybooks/storybook/blob/next/MIGRATION.md#deprecate-webpack-extend-mode

@shilman thank you! Problem solved!!

Was this page helpful?
0 / 5 - 0 ratings