Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to compile #4

Open
succinct opened this issue Dec 12, 2019 · 2 comments
Open

Unable to compile #4

succinct opened this issue Dec 12, 2019 · 2 comments

Comments

@succinct
Copy link

I've installed vue-taggable-select via npm and added it to my component as follows:

<template>
    <div>
        <vue-taggable-select
                :options="autocompleteItems"
                :required="true"
                :taggable="true"
                v-model="tagInput"
        ></vue-taggable-select>
    </div>
</template>

<script lang="ts">
    import {Vue, Component, Prop, Watch} from 'vue-property-decorator';
    import VueTaggableSelect from 'vue-taggable-select';
    import Tag, {TagInterface, TagObjectInterface} from './tag';
    ...

    @Component({
        components: {
            VueTaggableSelect
        },
    })
    export default class TagGroup extends Vue {
        autocompleteItems: TagInterface[] = [];
        tagInput: string = '';

        ...
    }
</script>

Upon compile, I get the following error:

    ERROR in ./node_modules/vue-taggable-select/dist/VueTaggableSelect.vue
    Module parse failed: Unexpected token (1:0)
    You may need an appropriate loader to handle this file type.
    | <template>
    |     <div :class="[classes.wrapper]" ref="taggable-select">
    |         <p class="border-2 mb-3 border-red-dark p-4 text-red bg-red-lightest text-bold rounded text-3xl required" v-show="errors.length">
webpack: Failed to compile.
@robrogers3
Copy link
Owner

Hmm. That's weird. Has web pack been working for other components?

@robrogers3
Copy link
Owner

Usually if it can't compile the template it shouldn't work for any components with templates.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants