tralves / collaborative-markdown-editor

A collaborative markdown editor
Apache License 2.0
11 stars 0 forks source link

webpack error #1

Open persianphilosopher opened 7 years ago

persianphilosopher commented 7 years ago

This is a very exciting project and I really didn't want to give up on it and walk away. I am getting lots of errors and not sure where to start. Running the karma test fails and the same goes with any of the webpack configurations (dev/prod). The error that is always thrown first is this:

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'vue'.

It also complained about not finding the dir "static/*" and once I put in the absolute path it stopped complaining about that one. But I can't get npm to run any of the configs.

Any help would be much appreciated!

persianphilosopher commented 7 years ago

As a quick addendum: I should mention that although I tried to follow your excellent instructions, there are two spots that come to mind where I may have slipped up.

  1. The Readme file [links to your other repo] (https://github.com/tralves/collaborative-markdown-editor#build-setup) and not this one. I cloned the current one thinking that was a typo but perhaps that could be a problem.
  2. Although I obtained all the google bits and pieces that you had mentioned in your instructions - which were really terrific, by the way - I did not end up with a google tracking id that the env.js seems to want either.

These two might be the reason for the above failures?

tralves commented 7 years ago

Hello, @persianphilosopher

Sorry for taking so long to reply.

Thank you very much for the interest in the project! I made it open source exactly so that people could use or learn something. Please understand that I made this project to learn, and maybe (just maybe) release it as a finished product. At some point my interest moved to other projects and this project is now waiting for more time to continue. Anyway, what I did was enough to have a demo working... I consider it a success :)

About your questions:

  1. Tests I really did try implementing tests at some point, but it got really difficult (testing in JS is hard), so I quit in order to just finish it. The main problem with testing is that my code got very promiscuous with the GAPI, and that made testing hard.

  2. npm/build errors I don't know what your issue is. I'll try to build it from scratch and see if I get the same error.

  3. git clone Yup, typo from copy/paste.

  4. google tracking id You get the google tracking id from analytics.google.com and not from the Google Developers Console. That's why I forgot to explain that in the README.

I hope this helps.

persianphilosopher commented 7 years ago

Thank you so much for your thoughtful response. If you need any logs or anything else I can help with, please don't hesitate. And thank you for all your work