buuing/lucky-canvas

react 项目引入依赖有报错警告

fuzhengwei opened this issue · 1 comments

新年快乐😄 放假在家没事敲敲代码,挺不好意思的,这会提交 issue,辛苦老板!祝老板发财,龙年大吉🐲

  • 你当前是什么框架(必填):react

  • 你使用的是哪个包(必填): @lucky-canvas/react

  • 你当前插件的版本(必填):^0.1.13

  • 当前环境是小程序还是浏览器(选填):浏览器

  • 详细描述你的bug:

    • 错误1:import { LuckyWheel } from '@lucky-canvas/react' 警告⚠️【TS7016: Could not find a declaration file for module '@lucky-canvas/react'. '/Users/fuzhengwei/1024/KnowledgePlanet/big-market/big-market-front/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';】
    • 错误2;如图
1111 - 错误3; Xnip2024-02-10_20-31-46