我需要添加一个功能以通过此包的标记聚类器获取分组标记列表: https ://www.npmjs.com/package/@agm/markerclusterer
目前 - 没有这样的能力,似乎回购很长时间没有更新。
我已经从这里分叉了 github repo:
https://github.com/SebastianM/angular-google-maps
然后我提交了所需的更改:
现在 - 我无法使用它。
因为,当我通过npm instll neverlose-lv/angular-google-maps
命令安装依赖项时 - 依赖项作为 github repo 的源代码安装,但是要工作 - 它应该是构建文件(dist/
我猜是目录。npm run build:prod
)命令的结果。
我无法通过npm publish
命令发布 repo。我收到一个错误:npm ERR! Cannot read properties of undefined (reading 'trim')
我试图进行构建:
npm install
npm run build:prod
构建成功并出现一些警告。然后我将构建文件提交到另一个仓库:
https://github.com/neverlose-lv/markerclusterer-dist
当我尝试使用它时( ) - 我得到了指令npm install neverlose-lv/markerclusterer-dist
中列出的依赖错误。peerDependencies
到目前为止,我自己做了...
我想知道如何正确使用和使用这个包?