New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Karma, Webpack and Travis to work #261

Closed
christophehenry opened this Issue Aug 18, 2017 · 1 comment

Comments

2 participants
@christophehenry
Contributor

christophehenry commented Aug 18, 2017

I think it's a good time to raise an issue. I'm still struggling trying to find the correct configuration for Karma and Webpack. This is more or less a blocking point for #254. In the current state of #254, npm run testfails locally on my computer with error:

TypeError: undefined is not an object (evaluating 'plugin.install')

which seems to be related to this line which, if commented, make the tests pass.

It fails on @jaywink with error:

SyntaxError: Unexpected token 'const'"

And it fails on Travis with yet another error. Somehow, the link between Webpack and Karma seems to be broken. For instance, I found three days ago, that I had to use a .babelrc file to make Karma to work with vue-masonry. Previously to that, I had:

PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  SyntaxError: Unexpected token 'const'
  at webpack:///node_modules/vue-masonry/src/masonry.plugin.js:5:1 <- socialhome/streams/app/tests/main.tests.js:11622

which seems to be the same error that @jaywink currently faces. Karma and/or Webpack seem to be very sensible to environment though I have no idea yet of what makes them that fragile.

None of what I've found so far on internet has been helpful. I've lost all hope by now. Thus, if anybody has any idea how to solve the problem, I open. I won't be able to progess if this is not solved.

@jaywink

This comment has been minimized.

Show comment
Hide comment
@jaywink
Owner

jaywink commented Aug 19, 2017

@jaywink jaywink closed this Aug 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment