Error when trying to run 2.x demo
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:15 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To clarify, here is exactly what I did originally (that failed):
And what I did that worked:
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 ofresolve
in webpack.config.js without success. I finally was able to get the 2.x demo working by copyingnode_modules
in the demo to the project root.Environment:
Working demo: