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

Problem with vue files #19

Open
victorwpbastos opened this issue Feb 21, 2017 · 12 comments
Open

Problem with vue files #19

victorwpbastos opened this issue Feb 21, 2017 · 12 comments

Comments

@victorwpbastos
Copy link

With this package installed the .vue files are rendered like this:

image

@JoshuaWise
Copy link
Owner

JoshuaWise commented Feb 21, 2017

What language does it display in the very bottom right of Sublime Text?

@victorwpbastos
Copy link
Author

It shows Vue Component.

@JoshuaWise
Copy link
Owner

I can't reproduce the problem you're having. Could you copy-and-paste the entire file here for me to test it?

@victorwpbastos
Copy link
Author

Ok. Remember to install the Vue Syntax Highlight package.

<template>
    <div v-if="user">
        <h2>{{ user }}</h2>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                user: 'Admin'
            }
        }
    }
</script>

<style scoped>
    h2 {
        color: red;
    }
</style>

@icepole-jon
Copy link

icepole-jon commented Mar 23, 2017

@victorwpbastos, @JoshuaWise Did you have any method to deal with this? thx a lot

@victorwpbastos
Copy link
Author

@icepole-jon, for now, I disabled the plugin.

@alexbet
Copy link

alexbet commented Mar 23, 2017

+1. I have Vue Syntax Highlight installed, but I am getting all of those red blocks too. Any way that this can get fixed? I disabled the package for now.

@alexbet
Copy link

alexbet commented Mar 23, 2017

Enabling the "Javascript" package that this package disables solves the red blocks problem. But, it seems like Sublime needs a few seconds before it can render a Vue file on boot. I will uninstall this package until this problem has been resolved.

@franciscolourenco
Copy link

Same issue here.

@franciscolourenco
Copy link

With the default Javascript package installed:
text.html.vue for <template></template>
text.html.vue source.js.embedded.html for <script></script>
text.html.vue source.css.embedded.html for <style></style>

@franciscolourenco
Copy link

For anyone interested, babel-sublime is working fine with .vue files, after disabling the default Javascript package.

@JoshuaWise
Copy link
Owner

The problem seems to be caused by the Vue Component syntax not using the proper way of embedding other syntaxes (javascript). I'll see if I can create a PR on their repo to get it fixed.

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

5 participants