Customer Service app from the book Rails, Angular, Postgres, and Bootstrap by David Bryant Copeland
- The
webpack-dev-server
installed by latest webpacker gives aTypeError: Cannot read property 'compile' of undefined when running ./bin/webpack-dev-server
onforeman start
. To fix, downgrade by runningyarn upgrade webpack-dev-server@^2.11.1
- The
webpack-dev-server
installed when webpacker adds angular gives aTypeError: Cannot read property 'afterCompile' of undefined
onforeman start
. To fix, downgrade by runningyarn upgrade ts-loader@^3.5.0
- Downgrade angular
yarn upgrade @angular/common@^4.1.3 @angular/compiler@^4.1.3 @angular/common@^4.1.3 @angular/compiler@^4.1.3 @angular/core@^4.1.3 @angular/forms@^4.1.3 @angular/http@^4.1.3 @angular/platform-browser@^4.1.3 @angular/platform-browser-dynamic@^4.1.3
- Use
import "babel-polyfill";
incustomers.js
to make the capybara feature tests pass - Don't use
config/webpack/shared.js
. Useconfig/webpack/karma.js
inspec/javascript/karma.conf.js
- For 'html-loader', add loader to
config/webpack/environment.js
const html = require('./loaders/html') environment.loaders.append('html', html)