Hello,
I’m very new to this world so please be patient if my question comes across as very basic. I’m currently running WSL (Windows Subsystem for Linux) on Windows 10. I’m trying to work with a JAMstack Netlify template called Awake, A Nuxt Blog template (https://templates.netlify.com/![awake-blog-template|690x369](upload://ayuEThQOVw088ZFDOqL3rju715I.jpeg) -nuxt/). I would cd to the template directory and running ( sudo apt install npm has been run prior) npm install netlify-cli -g to get the following errors:
ERROR in ./cms/netlify/mixins.js
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/home/awake-template/cms/netlify/mixins.js
30:5 error Unnecessary try/catch wrapper no-useless-catch
67:5 error Unnecessary try/catch wrapper no-useless-catch
✖ 2 problems (2 errors, 0 warnings)
ERROR in ./cms/netlify/post.js
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/home/awake-template/cms/netlify/post.js
12:3 error Expected blank line between class members lines-between-class-members
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
ERROR in ./components/Markdown.vue
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/home/awake-template/components/Markdown.vue
2:39 warning Attribute ":template" should go before "class" vue/attributes-order
61:38 error Strings must use singlequote quotes
62:41 error Strings must use singlequote quotes
✖ 3 problems (2 errors, 1 warning)
2 errors and 1 warning potentially fixable with the `--fix` option.
ERROR in ./components/ModalOverlay.vue
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/home/awake-template/components/ModalOverlay.vue
15:51 warning Attribute "@click" should go before "aria-label" vue/attributes-order
21:43 warning Attribute "@click" should go before "class" vue/attributes-order
26:11 warning Attribute "@click" should go before "class" vue/attributes-order
53:24 error Strings must use singlequote quotes
✖ 4 problems (1 error, 3 warnings)
1 error and 3 warnings potentially fixable with the `--fix` option.
ERROR in ./components/SiteNav.vue
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/home/awake-template/components/SiteNav.vue
31:11 warning Attribute "@click" should go before "class" vue/attributes-order
33:11 error Expected '<component>' elements to have 'v-bind:is' attribute vue/require-component-is
✖ 2 problems (1 error, 1 warning)
0 errors and 1 warning potentially fixable with the `--fix` option.
ERROR in ./layouts/default.vue
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/home/awake-template/layouts/default.vue
50:20 error Strings must use singlequote quotes
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
I ran npm install vue-template-compiler, sudo npm i vue@latest --save, sudo npm i vue-server-renderer@latest --save, sudo npm install eslint-loader --save-dev and followed some of the suggestions provided but still no luck. Client side compiles with errors, while the Server side compiles successfully. Long story short I’m trying to get this template to work locally and once completed i can push changes and publish template to my Github repo so it can be presented to the world. I have provided a screen shot, right now i’m getting an overlay of the code errors with the template site in the background. Please help and thanks in advance.