如何获得正确构建的 react-beautiful-dnd 库?
How to get the correct build of react-beautiful-dnd library?
我为 react-beautiful-dnd github 项目创建了一个分支,并添加了一些功能
但是当我使用 yarn run build
构建我的 fork 并在我的项目中使用新的 dist 时,我遇到了一个编译问题
./node_modules/suivi-beautiful-dnd-with-custom-payload/dist/react-beautiful-dnd.esm.js
Module not found: Can't resolve './view/drag-drop-context/index.js' in 'C:\Users\tahas\OneDrive\Bureau\Backend\Statsh\Statsh.Frontend_POC\node_modules\suivi-beautiful-dnd-with-custom-payload\dist'
我看到 我在 npm 中的构建与 react-beautiful-dnd npm 提供的 构建之间存在差异,但我没有弄清楚为什么我会有所不同,或者我没有更改 package.json 文件中的构建配置?
我的 npm 构建的屏幕截图:
react-beautiful-dnd npm提供的构建截图:
如何解决这个问题?
我做了自己的样板来构建项目,现在可以使用了!
https://github.com/ProNoob702/Boilerplate-to-build-custom-react-beautiful-dnd
我为 react-beautiful-dnd github 项目创建了一个分支,并添加了一些功能
但是当我使用 yarn run build
构建我的 fork 并在我的项目中使用新的 dist 时,我遇到了一个编译问题
./node_modules/suivi-beautiful-dnd-with-custom-payload/dist/react-beautiful-dnd.esm.js
Module not found: Can't resolve './view/drag-drop-context/index.js' in 'C:\Users\tahas\OneDrive\Bureau\Backend\Statsh\Statsh.Frontend_POC\node_modules\suivi-beautiful-dnd-with-custom-payload\dist'
我看到 我在 npm 中的构建与 react-beautiful-dnd npm 提供的 构建之间存在差异,但我没有弄清楚为什么我会有所不同,或者我没有更改 package.json 文件中的构建配置?
我的 npm 构建的屏幕截图:
react-beautiful-dnd npm提供的构建截图:
如何解决这个问题?
我做了自己的样板来构建项目,现在可以使用了! https://github.com/ProNoob702/Boilerplate-to-build-custom-react-beautiful-dnd