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

TS loader does not work with vue files #2

Open
iSynth opened this issue Sep 27, 2018 · 1 comment
Open

TS loader does not work with vue files #2

iSynth opened this issue Sep 27, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@iSynth
Copy link

iSynth commented Sep 27, 2018

My index.vue file:

<template>
    <section>
        INDEX
    </section>
</template>

<script lang="ts">

    import { Component, Vue } from 'nuxt-property-decorator'

    @Component({})
    export default class Index extends Vue {

    }
</script>

My tsconfig.json file:

.....

"experimentalDecorators": true,
 "emitDecoratorMetadata" : true
.....

I got this error message

Module parse failed: Unexpected character '@' (11:0)
You may need an appropriate loader to handle this file type.
| import { Component, Vue } from 'nuxt-property-decorator'
|

@component({}
| )
| export default class Index extends Vue {

@pkej
Copy link
Owner

pkej commented Dec 2, 2018

I'm sorry, I've updated my repository, if you're able to recheck if it works now, I'd be happy. I've also added some documentation on where I've gotten my input from, who laid the work for getting to this.

@pkej pkej added the bug Something isn't working label Dec 2, 2018
@pkej pkej self-assigned this Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants