Comments (5)
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.
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.
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.
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.
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)
- feature request: auto infer prop types HOT 4
- bug: Cannot view component definition HOT 2
- TS error when deploying with vercel HOT 7
- Scss variables are undefined when accessed globally HOT 4
- No javascript text is not wrapped in <noscript> HOT 3
- Using custom icons HOT 3
- feature request: module federation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-vue2-vuetify-ts-starter.