Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import PiVue from 'pi-vue' #1

Open
paddy235 opened this issue Feb 20, 2019 · 1 comment
Open

import PiVue from 'pi-vue' #1

paddy235 opened this issue Feb 20, 2019 · 1 comment

Comments

@paddy235
Copy link

无法找到模块“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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants