我刚刚在我的ember cli app上安装了https://www.npmjs.com/package/ember-cli-tooltipster。
$ npm install ember-cli-tooltipster --save-dev
$ ember g ember-cli-tooltipster
然而,当我在浏览器上加载rmber应用程序时,我从loader.js
收到以下错误loader.js:58未捕获错误:找不到模块 烬-CLI-tooltipster /组件/ tooltipster
我为什么会收到此错误?
$ ember version --verbose
version: 0.2.2
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/#watchman for more info.
http_parser: 2.3
node: 0.12.2
v8: 3.28.73
uv: 1.4.2-node1
zlib: 1.2.8
modules: 14
openssl: 1.0.1m
npm: 2.7.4
的package.json ::
"devDependencies": {
"bower": "^1.3.12",
"broccoli-asset-rev": "^2.0.0",
"broccoli-merge-trees": "^0.2.1",
"broccoli-static-compiler": "^0.2.1",
"ember-cli": "^0.2.0",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.3.0",
"ember-cli-dependency-checker": "0.0.7",
"ember-cli-htmlbars": "^0.6.0",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-less": "^1.1.1",
"ember-cli-qunit": "0.3.1",
"ember-cli-simple-auth": "^0.7.2",
"ember-cli-simple-auth-oauth2": "^0.7.2",
"ember-cli-tooltipster": "0.0.6",
"ember-data": "1.0.0-beta.12",
"ember-export-application-global": "^1.0.0",
"ember-mousetrap": "0.2.0",
"express": "^4.8.5",
"glob": "^4.4.0"
}
**我在安装后重新启动了ember服务器。并完全重新安装了节点和bower模块。
**还要确定为什么它不会在ember build
命令上产生错误。我创建了一个自定义组件来使用:import TooltipsterComponent from 'ember-cli-tooltipster/components/tool-tipster';
扩展此组件,然后运行ember build
并成功构建。但是当我ember serve
然后从浏览器加载应用程序时,我在javascript控制台中收到错误消息。