You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Recently, I started using storybook as my react ui environment. My project was created with create-react-app. In my project, the SVG is imported and used like this:
import Cat from './cat.svg'
...
<img src={Cat} />
...
but when I add some webpack config in .storyboook/webpack.config.js.
It does't work well. the console has an error: " http://localhost:9001/function SVG() { _classCallCheck(this, SVG); return _possibleConstructorReturn(this, (SVG.__proto__ || Object.getPrototypeOf(SVG)).apply(this, arguments)); }" 404 not found.
so, can someone could help me with this? what config I should add to make it work well?
The text was updated successfully, but these errors were encountered:
@Hypnosphi ,Thank you! I found the error was caused by my carelessness. I forget to reset the server after changing the web pack.config.js. After I reseted the server, everything work well. I am sorry for my carelessness.
Hi! Recently, I started using storybook as my react ui environment. My project was created with create-react-app. In my project, the SVG is imported and used like this:
but when I add some webpack config in
.storyboook/webpack.config.js
.It does't work well. the console has an error:
" http://localhost:9001/function SVG() { _classCallCheck(this, SVG); return _possibleConstructorReturn(this, (SVG.__proto__ || Object.getPrototypeOf(SVG)).apply(this, arguments)); }" 404 not found
.so, can someone could help me with this? what config I should add to make it work well?
The text was updated successfully, but these errors were encountered: