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

can not find @flowjs/flow.js declaration #81

Closed
touchsky2018 opened this issue Feb 13, 2022 · 1 comment
Closed

can not find @flowjs/flow.js declaration #81

touchsky2018 opened this issue Feb 13, 2022 · 1 comment

Comments

@touchsky2018
Copy link

touchsky2018 commented Feb 13, 2022

anyone know how to resolve this.

import Flow from '@flowjs/flow.js';

S7016: Could not find a declaration file for module '@flowjs/flow.js'. 'xxxxxxxx/node_modules/@flowjs/flow.js/src/flow.js' implicitly has an 'any' type.
Try npm i --save-dev @types/flowjs__flow.js if it exists or add a new declaration (.d.ts) file containing declare module '@flowjs/flow.js';

21 import Flow from '@flowjs/flow.js';

无法找到模块“@flowjs/flow.js”的声明文件。“C:/FescoDev/09.source/frontend-electron/GsyfSys/node_modules/@flowjs/flow.js/src/flow.js”隐式拥有 "any" 类型。
尝试使用 npm i --save-dev @types/flowjs__flow.js (如果存在),或者添加一个包含 declare module '@flowjs/flow.js'; 的新声明(.d.ts)文件ts(7016)

@akeresztesgh
Copy link

I installed the suggested type file: "npm i --save-dev @types/flowjs__flow.js"
Then, in my app module, I changed the flow import to:
import * as Flow from '@flowjs/flow.js';

then it worked.

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

3 participants