Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

微信小程序引用的时候显示缺少声明文件,怎么解决 #14

Open
xxhzzstsyd opened this issue Apr 26, 2020 · 1 comment
Open

Comments

@xxhzzstsyd
Copy link

Error: module "miniprogram_npm/hanzi-writer-miniprogram/hanzi-writer" is not defined
module "C:/Users/123/Desktop/\u4E2D\u6587\u6D3Emini/weapp-house-mall-master/node_modules/_hanzi-writer-miniprogram@1.0.4@hanzi-writer-miniprogram/miniprogram_dist/index"
无法找到模块“hanzi-writer-miniprogram”的声明文件。“C:/Users/123/Desktop/中文派mini/weapp-house-mall-master/node_modules/_hanzi-writer-miniprogram@1.0.4@hanzi-writer-miniprogram/miniprogram_dist/index.js”隐式拥有 "any" 类型。
Try npm install @types/hanzi-writer-miniprogram if it exists or add a new declaration (.d.ts) file containing declare module 'hanzi-writer-miniprogram';ts(7016)

@chanind
Copy link
Owner

chanind commented Apr 27, 2020

There's no typescript type definition for this currently unfortunately. You can disable the error with // @ts-ignore if I remember correctly.

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

No branches or pull requests

2 participants