lucky-canvas icon indicating copy to clipboard operation
lucky-canvas copied to clipboard

tsx 导入失败啊

Open INTKILOW opened this issue 2 years ago • 4 comments

TS7016: Could not find a declaration file for module '@lucky-canvas/react'. 'C:/Users/INTKI/xxx/xxx/node_modules/@lucky-canvas/react/dist/index.cjs.js' implicitly has an 'any' type.   Try npm i --save-dev @types/lucky-canvas__react if it exists or add a new declaration (.d.ts) file containing declare module '@lucky-canvas/react';

INTKILOW avatar Mar 06 '23 01:03 INTKILOW

对, 因为react包我没导出type类型文件, 只有lucky-canvas源码包导出了

buuing avatar Mar 06 '23 01:03 buuing

怎么解决这个问题

INTKILOW avatar Mar 06 '23 01:03 INTKILOW

这么用https://100px.net/usage/js.html

buuing avatar Mar 06 '23 01:03 buuing

什么时候能解决一下这个tsx导入问题 不想用js导入

INTKILOW avatar Mar 06 '23 02:03 INTKILOW