Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning route-recognizer

I need some help here..

Just updated my ember-cli to 0.1.9 version and the only problem is this warning:

Warning: ignoring input sourcemap for bower_components/route-recognizer/dist/route-recognizer.js because ENOENT, no such file or directory '/Users/Zaca/Eyenetra/portal/tmp/tree_merger-tmp_dest_dir-kOIywY0K.tmp/bower_components/route-recognizer/dist/route-recognizer.js.map'

Here's my call to this addon on brocfile.js:

//brocfile.js
(...)
app.import('bower_components/moment/moment.js');

app.import({development: 'bower_components/route-recognizer/dist/route-recognizer.js'});
app.import({development: 'bower_components/FakeXMLHttpRequest/fake_xml_http_request.js'});
app.import({development: 'bower_components/pretender/pretender.js'});

module.exports = app.toTree();

This happens when I build my project for tests and for local server.

Any ideas?

Thanks for the help! o/

like image 908
Márcio Rocha Zacarias Avatar asked Jan 27 '15 15:01

Márcio Rocha Zacarias


1 Answers

We have actually moved away from using Pretender, since at the moment we always have a staged API up and running.

In doing that, we removed the following from our Brocfile:

app.import({development: 'bower_components/route-recognizer/dist/route-recognizer.js'});
app.import({development: 'bower_components/FakeXMLHttpRequest/fake_xml_http_request.js'});
app.import({development: 'bower_components/pretender/pretender.js'});

With that the warning went away.

Aside: I'm unsure of the implications of not having route-recognizer there, but so far there has been no effect without it.

like image 111
Rob Park Avatar answered Oct 23 '22 14:10

Rob Park