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

TypeScript decorators don't seem to be supported #87

Open
sneko opened this issue Sep 8, 2018 · 1 comment
Open

TypeScript decorators don't seem to be supported #87

sneko opened this issue Sep 8, 2018 · 1 comment

Comments

@sneko
Copy link

sneko commented Sep 8, 2018

Hi,

I got this error when testing the plugin:

ERROR in ./src/views/Home.vue?vue&type=script&lang=ts& (./node_modules/vue-loader/lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=ts&) 18:0
Module parse failed: Unexpected character '@' (18:0)
You may need an appropriate loader to handle this file type.
| import { Component, Vue } from 'vue-property-decorator';
|
> @Component({})
| export default class Home extends Vue {
|     // public async create() {
 @ ./src/views/Home.vue?vue&type=script&lang=ts& 1:0-119 1:135-138 1:140-256 1:140-256
 @ ./src/views/Home.vue
 @ ./src/stories/index.stories.js
 @ ./src/stories sync .stories.js$
 @ ./config/storybook/config.js
 @ multi ./node_modules/@storybook/core/dist/server/config/polyfills.js ./node_modules/@storybook/core/dist/server/config/globals.js ./config/storybook/config.js ./node_modules/webpack-hot-middleware/client.js?reload=true

Any idea how to fix it?

Thank you,

@theKashey
Copy link
Contributor

This issue is related to storybook, not to storybook-chrome-screenshot which just runs it.

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

2 participants