vue-smooth-dnd icon indicating copy to clipboard operation
vue-smooth-dnd copied to clipboard

Cannot run demo(s) locally

Open mundek opened this issue 5 years ago • 0 comments

First, thanks for providing this module to the community. The live demo looks great, and I'm hoping to add drag and drop functionality to some language learning apps I'd like to create.

I've cloned the repository, run "npm install" (in the "demo" directory), and then run "npm run dev" from the command line in the "demo" directory. Each time, I get the following:

ERROR in ./src/index.vue
Module build failed: SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> ([PATH-DELETED]/vue-smooth-dnd/demo/node_modules/vue-loader/index.js:1:80)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at loadLoader ([PATH-DELETED]/vue-smooth-dnd/demo/node_modules/loader-runner/lib/loadLoader.js:13:17)
    at iteratePitchingLoaders ([PATH-DELETED]/vue-smooth-dnd/demo/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
 @ ./src/main.js 12:0-31
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

Any tips, hints, etc. in getting this up and running on my local machine would be greatly appreciated.

(Also, I was unable to use the Code Sandbox demo, too, as noted in an earlier issue posted by jan-scorl.)

mundek avatar Dec 02 '18 17:12 mundek