小编Adi*_*tra的帖子

找不到模块“flowbite/plugin”的声明文件

所以我使用 flowbite 和 tailwind css 来开发我的 React 应用程序。我遵循了他们的网站中提到的所有标准安装程序,以使用 React 设置 Flowbite,请在此处参考文档: https: //flowbite.com/docs/getting-started/react/

\n

因此,在完成基本设置过程后,我的 tailwind 文件如下所示:

\n
module.exports = {\n    content: [\'./src/**/*.{js,jsx,ts,tsx}\', \'./node_modules/flowbite/**/*.js\'],\n    theme: {\n        extend: {},\n    },\n    plugins: [require(\'flowbite/plugin\')],\n}\n    \n
Run Code Online (Sandbox Code Playgroud)\n

当我需要 Flowbite 插件时,我不断收到的错误是:

\n
    > Could not find a declaration file for module \'flowbite/plugin\'.\n    > \'C:/dev/flowbite-test/node_modules/flowbite/plugin.js\' implicitly has\n    > an \'any\' type.   Try `npm i --save-dev @types/flowbite` if it exists\n    > or add a new declaration (.d.ts) file containing `declare module\n    > \'flowbite/plugin\';`\n    \n
Run Code Online (Sandbox Code Playgroud)\n

这里还有我的 app.js …

reactjs tailwind-css tailwind-in-js flowbite

8
推荐指数
1
解决办法
8257
查看次数

标签 统计

flowbite ×1

reactjs ×1

tailwind-css ×1

tailwind-in-js ×1