简体   繁体   中英

Avoid error <yourObject> is not defined in Ember.js

Every time that I install a bower module for my Ember.js application, when I added them inside my ember-cli-build.js I can use it inside components, controllers, services, etc. But JSHint give me an error like following:

'RRule' is not defined.

or

'Stream' is not defined.

How can I void them?

This is my imports in ember-cli-build.js :

  app.import('bower_components/rrule/lib/rrule.js');
  app.import('bower_components/rrule/lib/nlp.js');
  app.import('bower_components/streamjs/stream.js');

在文件.jshintrc ,添加"RRule""Stream"predef

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM