Open jeongtae opened 3 years ago
@j3rem1e I repro'd this even on the 6.2-rc (npx sb@next init
). any ideas what's going on?
It's a known issue with webpack4 : https://github.com/sveltejs/svelte-loader/issues/137 https://github.com/webpack/webpack/issues/10227#issuecomment-642734920
with yarn, there is a workaround :
"resolutions": {
"acorn": "8.0.1"
},
Can confirm @j3rem1e 's workaround works when on Webpack 4, and can also confirm this issue went away entirely when opting into Webpack 5.
Describe the bug When I use an optional chaining syntax in the Svelte component, An error occurs. It occurs only when I run Storybook, no problem on Rollup. I expected it is related to Babel so I tried to configure Babel in several ways but all failed.
To Reproduce Steps to reproduce the behavior:
Execute commands below
Edit
src/stories/Button.svelte
Run Storybook
See error
WARN Broken build, fix the error above. WARN You may need to refresh the browser.