-
Notifications
You must be signed in to change notification settings - Fork 103
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
SyntaxError in Vue project with preset-typescript 3.0.0 #121
Comments
@graup can you help out here? cc @mrmckeb @Aaron-Pool |
Thanks for the perfect bug report. I was going to test the 3.0 preset with vue-cli soon, great to have the steps already written up. I can reproduce this issue by following the steps. Looks like we have some digging to do here. |
I saw you guys have been busy with 6.0, specifically as it relates to TypeScript, so I thought I'd give this setup a shot again. TL;DR: Still not working for me, but error is different. The repo in my original report is still there, and has all the changes I describe here. I tried upgrading to 6.0 beta, using these migration steps.
When I run Storybook, I get the following output:
|
@macdaddyaz We know this is not working well for Vue right now and plan to deprecate this preset when Storybook 6 hits shortly - in favour of a built-in solution which supports Vue. In the meantime, can you modify the Webpack config in your project to match your Vue config? |
Ah, sorry @mrmckeb. I forgot this issue is on 'presets', not on Storybook itself. In fact, I'll go ahead and close this issue. If needed, I can open another on the main repo. Regarding the modifications, I'm not sure what you mean, but instead of taking this issue on a tangent, I'll move the conversation to Discord. |
I've hit what seems like a bug with using
preset-typescript
3.0.0 in a Vue.js project. I've created a simple project to demonstrate: https://github.com/macdaddyaz/sb-ts-bugAt this point, Storybook still runs fine using the example stories.
HelloWorld
component.It's at this point that Storybook stops working. When I run it, I get syntax errors on the TypeScript in the component:
preset-typescript
to 2.1.0, then Storybook starts just fine (another workaround is eliminating the TypeScript-specific syntax in theHelloWorld
component, which of course defeats the purpose).Based on #114, I realize that the preset recently switched from
ts-loader
tobabel-loader
, so maybe all that's needed is some additional configuration to get it working again?The text was updated successfully, but these errors were encountered: