Created
September 3, 2014 15:52
-
-
Save HERRKIN/39f7236d18b693403eaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I did | |
bower install ember-data-sails-adapter --save | |
if I put | |
<script type="text/javascript" src="/bower_components/ember-data-sails-adapter/ember-data-sails-adapter.js"></script> | |
in the index file of the app when I lift the ember server usign ember-cli it throws this error: | |
Remote Address:127.0.0.1:4200 | |
Request URL:http://localhost:4200/bower_components/ember-data-sails-adapter/ember-data-sails-adapter.js | |
Request Method:GET | |
Status Code:404 Not Found | |
Request Headersview source | |
Accept:*/* | |
Accept-Encoding:gzip,deflate,sdch | |
Accept-Language:es,en-US;q=0.8,en;q=0.6 | |
Cache-Control:max-age=0 | |
Connection:keep-alive | |
Cookie:sails.sid=s%3AuH95DOUFiiNppbzIlm8BhH2P.LS7QQO8vB0AiRsD3sIPIACtL14N4j9w8XNHJnBxqB%2Fo | |
Host:localhost:4200 | |
Referer:http://localhost:4200/ | |
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36 | |
Response Headersview source | |
Connection:keep-alive | |
Content-Length:82 | |
Content-Type:text/html; charset=utf-8 | |
Date:Tue, 02 Sep 2014 15:49:13 GMT | |
X-Powered-By:Express | |
The bower_component folder doesnt get served, ember-cli throws the libs to assets but ember-data-sails-adapter.js never gets to the assets folder. | |
I thought maybe if I put that .js file in the sails api server and served it separately it could work. | |
it now throws this error: | |
Error while processing route: users io is not defined ReferenceError: io is not defined | |
at DS.SailsSocketAdapter.DS.SailsAdapter.DS.SailsRESTAdapter.extend._listenToSocket (http://localhost:1337/js/dependencies/ember-data-sails-adapter/ember-data-sails-adapter.js:145:5) | |
at DS.SailsSocketAdapter.DS.SailsAdapter.DS.SailsRESTAdapter.extend.buildURL (http://localhost:1337/js/dependencies/ember-data-sails-adapter/ember-data-sails-adapter.js:100:10) | |
at apply (http://localhost:4200/assets/vendor.js:31547:27) | |
at superWrapper [as buildURL] (http://localhost:4200/assets/vendor.js:31125:15) | |
at __exports__.default.Adapter.extend.findAll (http://localhost:4200/assets/vendor.js:63243:31) | |
at _findAll (http://localhost:4200/assets/vendor.js:73862:29) | |
at Ember.Object.extend.fetchAll (http://localhost:4200/assets/vendor.js:72738:29) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to first
bower install socket.io-client
, thenbower install sails.io.js
and either include them in yourindex.html
file, or import them into yourBrocfile.js
Its not very clear on the repo's readme