buuing / lucky-canvas

🎖🎖🎖 基于 TS + Canvas 开发的【大转盘 / 九宫格 / 老虎机】抽奖插件,🌈 一套源码适配多端框架 JS / Vue / React / Taro / UniApp / 微信小程序等,🎨 奖品 / 文字 / 图片 / 颜色 / 按钮均可配置,支持同步 / 异步抽奖,🎯 概率前 / 后端可控,🚀 自动根据 dpr 调整清晰度适配移动端

Home Page:https://100px.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fuzhengwei opened this issue · 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