找不到依赖项翻转工具包

时间:2020-06-08 11:20:18

标签: javascript webpack dependencies webpack-encore

我想使用flip-toolkit(失败反应),所以我这样做:

我遵循了自述文件-> https://github.com/aholachek/react-flip-toolkit

npm install flip-toolkit
then
import { Flipper } from 'flip-toolkit' 

我有这个:

terminal issue

但是我的node_modules中都有两个文件夹:

folder flip-toolkit

folder react-flip-toolkit

这是我的文件package.json:

package.json file

当我将鼠标悬停在“ flip-toolkit”上时,我已经知道了:

path

我正在使用Symfony 4.4,并将Webpack Encore捆绑到资产中。

感谢您的帮助。

我还看了这篇文章:Webpack Encore: cannot import local dependencies

1 个答案:

答案 0 :(得分:0)

我的问题是一个bug,如果有人遇到相同的问题,请使用flip-toolkit@7.0.11

Here the issue on github