我已经使用bower安装了一些purescript包,下面是我的bower.json文件。
{
"name": "halogen-cube",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"output",
"dist"
],
"dependencies": {
"purescript-prelude": "^3.1.1",
"purescript-console": "^3.0.0",
"purescript-halogen": "^2.0.0",
"purescript-js-timers": "^3.0.0",
"purescript-halogen-svg": "*"
},
"devDependencies": {
"purescript-psci-support": "^3.0.0"
}
}我想添加purescript-web-uievents包,所以我在bower.json文件中添加了"purescript-web-uievents“:"^2.0.0”,然后重新安装了所有包。但在那之后,当我运行构建应用程序时,我遇到了这个问题。
module Data.Map has been defined multiple times:我应该怎么做才能解决这个问题?提前谢谢。
发布于 2019-04-02 06:47:43
此错误是由于两个不同的依赖项中存在相同的模块名称造成的。当模块从一个包移动到另一个包时,可能会发生这种情况。
在Data.Map的案例中,它一度是purescript-maps的一部分。但是,此程序包现在是deprecated;,并且Data.Map已移动到purescript-ordered-collections。
我的猜测是,您有一个可传递地包含purescript-maps的依赖项,而另一个依赖于purescript-ordered-collections。
https://stackoverflow.com/questions/55065400
复制相似问题