webtianjia
webtianjia
``` import Vue, { VNode } from 'vue'; declare global { namespace JSX { // tslint:disable no-empty-interface interface Element extends VNode {} // tslint:disable no-empty-interface interface ElementClass extends Vue {}...
```ERROR in E:/typeScript/demotypeScript1/demo2/demo/src/components/HelloWorld.vue 56:14 Property '$Message' does not exist on type 'HelloWorld'. 54 | 55 | public greet(i: any) { > 56 | this.$Message("hello") | ^ 57 | } 58...
@Debiancc 已经可以了 ,我安装了 ``` "vue-cli-plugin-element": "^1.0.0",``` 我使用了vue-cli3
 全局引用的 在main .ts
@elcarim5efil ## 这是我在最初版 的结构  ## 最新版错误如下:   请问该如何解决分包路径问题呢,求大佬帮助..
这个问题可有解决方案吗
@elcarim5efil
@bigmeow 这样只能兼容少数路径下的 ,其他的还是会出错
@bigmeow 放在目录是可以,但是如果有使用分包,就会出现我上面的问题。目前我的做法是暂时没有使用分包。压缩后大概800K勉强使用。但是后面若项目迭代,会出现代码包过大问题。
@bigmeow 准备了一份有问题的代码 地址如下: https://github.com/webtianjia/test