Friday, August 2, 2019

Re: can anyone help me to solve the following error in django-vue integration

I want to integrate django backend with  the  vue.js front-end  but when  I m config. Webpack bundle tracker then getting above error 

On Fri, Aug 2, 2019, 4:30 PM NILOTPAL GHOSH <ghoshnilotpal8@gmail.com> wrote:
Can you tell what you are trying to achieve?

On Friday, August 2, 2019 at 8:48:11 AM UTC+5:30, Pradeep Singh wrote:
F:\django-vue project\djangoVueProject\frontend\webpack.config.js:81
      'vue$': 'vue/dist/vue.esm.js'
            ^

SyntaxError: Unexpected token :
    at Module._compile (internal/modules/cjs/loader.js:721:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at requireConfig (F:\django-vue project\djangoVueProject\frontend\node_modules\webpack\bin\convert-argv.js:97:18)
    at F:\django-vue project\djangoVueProject\frontend\node_modules\webpack\bin\convert-argv.js:104:17
    at Array.forEach (<anonymous>)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\acer\AppData\Roaming\npm-cache\_logs\2019-08-02T03_06_13_266Z-debug.log

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3dc817c9-d758-461b-84c9-f43929d37406%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANwgZcY6iL0%2BOccF84B7nBYwwPxT4mSQKHEX5BHA-kJ6%2BBO0yw%40mail.gmail.com.

No comments:

Post a Comment