I want to convert existing vuejs project to nuxt.js project. For this I have created nuxt.js project and moved moved files to nuxt project. I had copied scr/view/layout and paste into layouts folder, vuex store files into store folder. Inside Layouts.vue changed this tag to this . Updated nuxt.config.js file accordingly added styles, modules and plugins. updated all broken paths.
But when we try to npm run dev it gave errors.
Error example
ERROR in ./assets/js/components/cookie.js
Module Error (from ./node_modules/eslint-loader/index.js):
ERROR in ./assets/js/components/cookie.js
Module Error (from ./node_modules/eslint-loader/index.js):
D:\VueJs-Projects\nuxtapp\assets\js\components\cookie.js
9:29 error Unnecessary escape character: \. no-useless-escape
9:37 error Unnecessary escape character: \( no-useless-escape
9:39 error Unnecessary escape character: \) no-useless-escape
9:41 error Unnecessary escape character: \[ no-useless-escape
9:47 error Unnecessary escape character: \/ no-useless-escape
9:49 error Unnecessary escape character: \+ no-useless-escape
✖ 6 problems (6 errors, 0 warnings)
[1]: https://i.sstatic.net/uCdLe.jpg