Vitens / pi-vue

Vue components for building interactive displays connected to OSISoft PI data
5 stars 1 forks source link

import PiVue from 'pi-vue' #1

Open paddy235 opened 5 years ago

paddy235 commented 5 years ago
无法找到模块“pi-vue”的声明文件。“/work/paddy/git/vue/demo2/node_modules/pi-vue/dist/pi-vue.common.js”隐式拥有 "any" 类型。
  Try `npm install @types/pi-vue` if it exists or add a new declaration (.d.ts) file containing `declare module 'pi-vue';`ts(7016)
module "/work/paddy/git/vue/demo2/node_modules/pi-vue/dist/pi-vue.common"

env:

···shell

Fedora release 29 (Twenty Nine) Linux paddy-pc 4.20.8-200.fc29.x86_64 #1 SMP Wed Feb 13 13:08:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[paddy@paddy-pc demo2]$ hostnamectl Static hostname: paddy-pc Pretty hostname: paddy_pc Icon name: computer-desktop Chassis: desktop Machine ID: 8d66f59246834ecfb38d87331abfca68 Boot ID: 538c1420fb564f8b911ce0651acbbf85 Operating System: Fedora 29 (Workstation Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:29 Kernel: Linux 4.20.8-200.fc29.x86_64 Architecture: x86-64

[paddy@paddy-pc demo2]$ node -v v10.15.0 [paddy@paddy-pc demo2]$ npm -v 6.4.1 [paddy@paddy-pc demo2]$ vue -V 2.9.6 [paddy@paddy-pc demo2]$

setp 1.

```shell
vue init webpack demo2

import PiVue from 'pi-vue'
AbelHeinsbroek commented 5 years ago

I think the problem is PI-Vue not yet typescript ready, can you get it running without typescript enabled?