ga-wdi-boston / ember-auth

Other
2 stars 98 forks source link

Can not open Ember Serve #3

Closed Knguyen21 closed 8 years ago

Knguyen21 commented 8 years ago

Hi,

I updated the app and test files from the front end to mirror the Ember Auth app and test files. In addition, I also updated bower.json and package.json. I npm installed and bower installed and tried to run ember server --proxy http://localhost:3000 . But an error messaged appeared and cut off the connection

screen shot 2016-04-04 at 10 59 44 am

Package.json

{
  "name": "taste-or-waste-template",
  "version": "0.0.0",
  "description": "Small description for taste-or-waste-template goes here",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "ember test"
  },
  "repository": "",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "active-model-adapter": "2.1.1",
    "broccoli-asset-rev": "^2.2.0",
    "ember-ajax": "0.7.1",
    "ember-cli": "2.4.2",
    "ember-cli-app-version": "^1.0.0",
    "ember-cli-autoprefixer": "0.6.0",
    "ember-cli-babel": "^5.1.5",
    "ember-cli-dependency-checker": "^1.2.0",
    "ember-cli-flash": "1.3.14",
    "ember-cli-htmlbars": "^1.0.1",
    "ember-cli-htmlbars-inline-precompile": "^0.3.1",
    "ember-cli-inject-live-reload": "^1.3.1",
    "ember-cli-qunit": "^1.2.1",
    "ember-cli-release": "0.2.8",
    "ember-cli-sass": "5.3.0",
    "ember-cli-sri": "^2.1.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-data": "^2.4.0",
    "ember-disable-proxy-controllers": "^1.0.1",
    "ember-export-application-global": "^1.0.4",
    "ember-load-initializers": "^0.5.0",
    "ember-local-storage": "1.1.0",
    "ember-resolver": "^2.0.3",
    "grunt": "^0.4.5",
    "grunt-concurrent": "^2.1.0",
    "grunt-contrib-jshint": "^0.12.0",
    "grunt-jscs": "^2.6.0",
    "grunt-jsonlint": "^1.0.7",
    "load-grunt-config": "^0.19.1",
    "loader.js": "^4.0.0",
    "time-grunt": "^1.3.0"
  }
}

bower.json

{
  "name": "taste-or-waste-template",
  "dependencies": {
    "ember": "~2.4.1",
    "ember-cli-shims": "0.1.0",
    "ember-cli-test-loader": "0.2.2",
    "ember-qunit-notifications": "0.1.0",
    "bootstrap-sass": "^3.3.6",
    "blob-polyfill": "^1.0.20150320"
  }
}

Ember-cli-build.js

var EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    sassOptions: {
      includePaths: [
        'bower_components/bootstrap-sass/assets/stylesheets'
      ]
    }
  });

  app.import('bower_components/bootstrap-sass/assets/javascripts/bootstrap.js');

  return app.toTree();
};
jrhorn424 commented 8 years ago

Would try doing another npm install? Sometimes there are network issues that mess up the build. If that doesn't fix it, try deleting node_modules and try again. Let me know if anything changes.

jrhorn424 commented 8 years ago

Also, this is something best tracked over at https://github.com/ga-wdi-boston/capstone-project. We can continue our discussion here for now.