DataMcFly / sms-contact

SMS Contact Center powered by Data McFly, Twilio and Node.js
http://blog.datamcfly.com/2015/01/29/sms-contact-twilio
4 stars 4 forks source link

Chat.js and style.css not working #2

Open jpey opened 8 years ago

jpey commented 8 years ago

I get through the Twilio backend setup successfully; however, when accessing the front end from localhost:8080 I get the "welcome to your sms contact center" box and below it the "incoming messages" header, but nothing else. It's almost as though the .css and chat.js files aren't connecting. On npm install, I am seeing the following "non- successes" :

npm WARN deprecated less-middleware@0.2.1-beta: Updated API and improved functionality. npm WARN deprecated MD5@1.2.1: deprecated, use lowercase 'md5@2.x' from now on \

ws@0.4.31 install /home/git/sms-contact/node_modules/datamcfly/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/home/git/sms-contact/node_modules/datamcfly/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o bufferutil.target.mk:87: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed

Any ideas?

freekrai commented 8 years ago

What version of node? I just did a fresh install and all worked as expected...

By the way, you should look at https://github.com/flybaseio/sms-contact as that is the most recent (we rebranded from Data McFly to Flybase back in July :) )

jpey commented 8 years ago

Thanks! I have moved over to Flybase. I am using node 4.2.1 npm 2.14.7 on my Raspberry Pi2 (jessie).

When I download the git and begin the npm install, I get pm ERR! Linux 4.1.7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v4.2.1 npm ERR! npm v2.14.7 npm ERR! code ETARGET

npm ERR! notarget No compatible version found: flybase@'>=1.4.4 <1.5.0' npm ERR! notarget Valid install targets: npm ERR! notarget ["1.5.8","1.5.9","1.6.0","1.6.1","1.6.2"] npm ERR! notarget npm ERR! notarget This is most likely not a problem with npm itself. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! notarget npm ERR! notarget It was specified as a dependency of 'sms-contact-center' npm ERR! notarget

This will resolve if I change the version of Flybase to something newer, like 1.5.9. Even with the npm install resolved, if I run app.js. I am back to square one with no chat.js render.

I wonder if it is a raspberry Pi 2 issue? Installing node on the Pi was a pain as well.

jpey commented 8 years ago

Never mind, I am having the same problem in my Ubuntu VM on the Mac. Is the problem that I am on node 4.2.1? Do I need to downgrade to "node": "0.10.26"?

freekrai commented 8 years ago

I just upgraded the flybase version in the package.json file, but I'm running it on 4 on heroku with no problem.

freekrai commented 8 years ago

What actual message do you get about the public folder?