question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to run 2.x demo

See original GitHub issue

When I go into the 2.x folder and type npm install, I get these warnings

npm WARN vue-axios@2.0.2 requires a peer of vue@>= 1.0.0 but none was installed.
npm WARN 2.x No description
npm WARN 2.x No repository field.
npm WARN 2.x No license field.

And then when I use npm run demo I get a long string of errors and a “webpack: Failed to compile.” warning and a failure to launch the demo.

is there something else required to be installed for the demo?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ssuesscommented, Aug 5, 2017

To clarify, here is exactly what I did originally (that failed):

  1. Downloaded the repo
  2. cd into vue-auth-master/demos/2.x
  3. run npm install
  4. run npm run demo

And what I did that worked:

  1. run npm install '@'websanova/vue-auth
  2. cd into node_modules/'@'websanova/vue-auth/demos/2.x/
  3. run npm install
  4. run npm run demo
0reactions
DanielMullercommented, Aug 18, 2017

Seems that this is due to webpack resolving modules relative to the file path. Files outside the demo path, like ../../../src/index.js, aren’t able to load modules in demo. Like here: https://github.com/websanova/vue-auth/blob/772eeda22f0676aa37051077a551edf2dab4b25b/demos/2.x/src/app.js#L98-L102 I tried several variations of resolve in webpack.config.js without success. I finally was able to get the 2.x demo working by copying node_modules in the demo to the project root.

Environment:

  >$ node -v
  v8.4.0
  >$ npm -v
  5.3.0
  >$ npm -g ls --depth 0
  └── npm@5.3.0

Working demo:

  git clone git@github.com:websanova/vue-auth.git
  cd vue-auth/demos/2.x
  npm i
  cp -a node_modules ../../
  npm run demo
Read more comments on GitHub >

github_iconTop Results From Across the Web

No luck in running demo 2.x · Issue #207 · websanova/vue-auth
I did git clone this repo. cd demos/2.x npm install npm run demo got 5 errors from webpack: ERROR ... Error when trying...
Read more >
Error: FH601 while launching Demo Forza Horizon 4
2) Run the MS Store apps troubleshooter at Settings > Update & Security > Troubleshoot. 3) Try to Reset or Repair the game...
Read more >
Error running Demo code - FEniCS Project
I tried to run demo code ft01_poisson.py from fenics import * import matplotlib.pyplot as plt mesh = UnitSquareMesh(8, ...
Read more >
Ocean WP – fatal error on demo import | WordPress.org
The site is using the theme, but I suppose that _something_ has not finished installing. If I go into the admin, I get...
Read more >
Error for running HUMAnN3 with demo and upgrade database
Hi all, I have a metagenomics dataset from an intervention study and want to do functional annotation and pathway analysis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found