Giter Club home page Giter Club logo

Comments (5)

logue avatar logue commented on May 30, 2024

I agree. I'm wondering what happened.
For now, try setting the line in vite.config.ts to false or commenting it out.

Not only is the build slower, but it is recreated every time devserver is started, so I was wondering if it should be set to true by default.

from vite-vue2-vuetify-ts-starter.

ngjuping avatar ngjuping commented on May 30, 2024

Hi logue,

I have tried changing that but eslint still complains about the decorator not found...

error 'Component' is not defined

Any ideas?

from vite-vue2-vuetify-ts-starter.

logue avatar logue commented on May 30, 2024

I found out what caused the build to be heavy, but it wasn't. Also, since unnecessary settings were included, it was supported in 0.4.7.

Hi logue,

I have tried changing that but eslint still complains about the decorator not found...

error 'Component' is not defined

Any ideas?

Are you using any external component library (such as vue-codemirror6 or vuetify-swatches )?

If you feel something is wrong, please run yarn run clean.

from vite-vue2-vuetify-ts-starter.

ngjuping avatar ngjuping commented on May 30, 2024

Hi logue,

I think I have delivered my confusion incorrectly.

Here's what I expected:

<script lang="ts">
@Component
export default class App extends mixins(Global) {}
</script>

No imports for Component decorator required. I have tried doing this in main.ts:
global.Component = Component

and use it like @global.Component , which has failed.

Do you think this is a good idea?

from vite-vue2-vuetify-ts-starter.

logue avatar logue commented on May 30, 2024

I think it's because the following line is missing.

import { Component, Vue } from 'vue-property-decorator';

There should have been no way to omit it in vue2...
Also, Vue 2.7, which is currently in alpha release, supports composition api by default, so due to conflicting concerns, we have no plans to implement it, if possible.

from vite-vue2-vuetify-ts-starter.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.