Did you add 'corsheaders', to the settings file? 

Follow this link: https://pypi.org/project/django-cors-headers/

On Thursday, August 1, 2019 at 10:18:11 PM UTC-5, 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4f14bd48-66bc-4f4c-8534-4bbe5ca9ee66%40googlegroups.com.

Reply via email to