在创建https://developer.here.com/olp/documentation/data-visualization-library/dev_guide/pages/install-generator.html中提到的可视化应用程序时,收到一条警告,即"requires a peer of three@^0.104.0 but none is installed."
.
但是在 中package.json
,我们已经依赖three
但在版本0.99.0
中。此外,警告中提到的源版本,例如@here/harp-lines@0.2.3
,处于较低版本package.json
,即"@here/harp-lines": "^0.2.1"
当我运行 Web 服务器时,我确实得到了底图和 userAuthorize 表单。但是,我无法在“加载文件”(因为页面片段为空白)小部件中看到任何内容。
提供的步骤:https ://developer.here.com/olp/documentation/data-visualization-library/dev_guide/pages/install-generator.html 这会生成应用程序,但会出现警告。创建项目时选择“来自geojson文件”(选项5)。在运行应用程序,然后填写身份验证信息时,它会显示一个底图。然而,没有别的办法。
这是在控制台上看到的警告:
npm WARN @here/harp-lines@0.2.3 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.
npm WARN @here/harp-datasource-protocol@0.3.3 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.
npm WARN @here/harp-mapview@0.8.3 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.
npm WARN @here/harp-map-controls@0.2.3 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.
npm WARN @here/harp-materials@0.2.3 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.
npm WARN @here/harp-text-canvas@0.2.3 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.
npm WARN @here/harp-geometry@0.1.2 requires a peer of three@^0.104.0 but none is installed. You must install peer dependencies yourself.