尝试将谷歌地图添加到使用“开放工具”(即 npm)方案的 ExtJS 应用程序。
$ ext-gen app -t moderndesktopminimal -m theme-material -n App
$ cd app
$ npm install --save @sencha/ext-google
$ vim app.json # add "google" to the "requires" array
$ npm start
我收到以下错误。
> webpack-dev-server --env.profile=desktop --env.browser=yes --env.verbose=no
i [ext]: ext-webpack-plugin v7.0.2, Ext JS v7.0.0.156 Commercial Edition, Sencha Cmd v7.0.0.40, webpack v4.39.3n/a
i [ext]: Starting development build for extjs
ℹ 「wds」: Project is running at http://0.0.0.0:1962/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from ./
ℹ 「wds」: 404s will fallback to /index.html
i [ext]: Processing Build Descriptor : desktop (development environment)
i [ext]: [ERR] Cannot satisfy requirements for "google"!
i [ext]: [ERR] The following versions cannot be satisfied:
i [ext]: [ERR] App: google (No matches!)
i [ext]: [ERR] Cannot resolve package requirements
******************************************
i [ext]: Cannot satisfy requirements for "google"!
******************************************
有什么我想念的想法吗?