MatteoGabriele / vue-progressive-image

Vue progressive image loading plugin
https://matteo-gabriele.gitbook.io/vue-progressive-image/
MIT License
721 stars 43 forks source link

Can't run examples #58

Closed Cobrand closed 5 years ago

Cobrand commented 5 years ago

This is not really a bug so I'll take the liberty to not use the template.

Basically

git clone https://github.com/MatteoGabriele/vue-progressive-image
pushd vue-progressive-image/examples
npm install
npm run build

returns

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue
Module not found: Error: Can't resolve '@/components/thumbnailsWithFallback' in '/home/cobrand/Code/vue-progressive-image/examples/src'
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue 14:0-73
 @ ./src/App.vue
 @ ./src/main.js

(this also happens with npm run dev). I've followed the README inside examples/. Is a step missing by any chance?

MatteoGabriele commented 5 years ago

hi @Cobrand I'm gonna have a look asap

thanks for your feedback

MatteoGabriele commented 5 years ago

I think you didn't run the dev server in the proper folder: you need to go inside the /example folder, install dependencies and run dev inside there.