webtianjia

Results 11 comments of 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

![image](https://user-images.githubusercontent.com/22638382/58145818-2b929780-7c86-11e9-9317-8adcfc95f00b.png) 全局引用的 在main .ts

@elcarim5efil ## 这是我在最初版 的结构 ![image](https://user-images.githubusercontent.com/22638382/58150917-b3829c80-7c9a-11e9-9b93-7af66314eec5.png) ## 最新版错误如下: ![image](https://user-images.githubusercontent.com/22638382/58150939-c6956c80-7c9a-11e9-8036-aceb9c629c1e.png) ![image](https://user-images.githubusercontent.com/22638382/58150946-ca28f380-7c9a-11e9-97af-55535c3ca32f.png) 请问该如何解决分包路径问题呢,求大佬帮助..

这个问题可有解决方案吗

@bigmeow 这样只能兼容少数路径下的 ,其他的还是会出错

@bigmeow 放在目录是可以,但是如果有使用分包,就会出现我上面的问题。目前我的做法是暂时没有使用分包。压缩后大概800K勉强使用。但是后面若项目迭代,会出现代码包过大问题。

@bigmeow 准备了一份有问题的代码 地址如下: https://github.com/webtianjia/test