Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

unknown character problem - prettier


run npm serve command, prettier too many warnings;

1:11 warning Delete `␍` prettier/prettier
2:20 warning Delete `␍` prettier/prettier
3:31 warning Delete `␍` prettier/prettier
4:22 warning Delete `␍` prettier/prettier
5:27 warning Delete `␍` prettier/prettier
6:79 warning Delete `␍` prettier/prettier
7:11 warning Delete `␍` prettier/prettier
8:20 warning Delete `␍` prettier/prettier
9:1 warning Delete `␍` prettier/prettier
10:22 warning Delete `␍` prettier/prettier
11:27 warning Delete `␍` prettier/prettier
12:21 warning Delete `␍` prettier/prettier
13:54 warning Delete `␍` prettier/prettier
14:24 warning Delete `␍` prettier/prettier
15:11 warning Delete `␍` prettier/prettier
16:20 warning Delete `␍` prettier/prettier
17:9 warning Delete `␍` prettier/prettier
18:18 warning Delete `␍` prettier/prettier
19:1 warning Delete `␍` prettier/prettier
20:20 warning Delete `␍` prettier/prettier
21:31 warning Delete `␍` prettier/prettier
22:22 warning Delete `␍` prettier/prettier
23:27 warning Delete `␍` prettier/prettier
24:79 warning Delete `␍` prettier/prettier
25:11 warning Delete `␍` prettier/prettier
26:20 warning Delete `␍` prettier/prettier
27:1 warning Delete `␍` prettier/prettier
28:22 warning Delete `␍` prettier/prettier
29:27 warning Delete `␍` prettier/prettier
30:21 warning Delete `␍` prettier/prettier
31:54 warning Delete `␍` prettier/prettier
32:24 warning Delete `␍` prettier/prettier
33:11 warning Delete `␍` prettier/prettier
34:20 warning Delete `␍` prettier/prettier
35:9 warning Delete `␍` prettier/prettier
36:18 warning Delete `␍` prettier/prettier
37:1 warning Delete `␍` prettier/prettier
38:20 warning Delete `␍` prettier/prettier
39:31 warning Delete `␍` prettier/prettier
40:22 warning Delete `␍` prettier/prettier
41:27 warning Delete `␍` prettier/prettier
42:79 warning Delete `␍` prettier/prettier
43:11 warning Delete `␍` prettier/prettier
44:20 warning Delete `␍` prettier/prettier
45:1 warning Delete `␍` prettier/prettier
46:22 warning Delete `␍` prettier/prettier
47:27 warning Delete `␍` prettier/prettier
48:21 warning Delete `␍` prettier/prettier
49:54 warning Delete `␍` prettier/prettier
50:24 warning Delete `␍` prettier/prettier
51:11 warning Delete `␍` prettier/prettier
52:20 warning Delete `␍` prettier/prettier
53:9 warning Delete `␍` prettier/prettier
54:18 warning Delete `␍` prettier/prettier
55:1 warning Delete `␍` prettier/prettier
56:20 warning Delete `␍` prettier/prettier
57:31 warning Delete `␍` prettier/prettier
58:22 warning Delete `␍` prettier/prettier
59:27 warning Delete `␍` prettier/prettier
60:79 warning Delete `␍` prettier/prettier
61:11 warning Delete `␍` prettier/prettier
62:20 warning Delete `␍` prettier/prettier
63:1 warning Delete `␍` prettier/prettier
64:22 warning Delete `␍` prettier/prettier
65:27 warning Delete `␍` prettier/prettier
66:21 warning Delete `␍` prettier/prettier
67:54 warning Delete `␍` prettier/prettier
68:24 warning Delete `␍` prettier/prettier
69:11 warning Delete `␍` prettier/prettier
70:20 warning Delete `␍` prettier/prettier
71:9 warning Delete `␍` prettier/prettier
72:18 warning Delete `␍` prettier/prettier
73:1 warning Delete `␍` prettier/prettier
74:64 warning Delete `␍` prettier/prettier
75:1 warning Delete `␍` prettier/prettier
76:66 warning Delete `␍` prettier/prettier
77:1 warning Delete `␍` prettier/prettier
78:66 warning Delete `␍` prettier/prettier
79:1 warning Delete `␍` prettier/prettier
80:66 warning Delete `␍` prettier/prettier
81:1 warning Delete `␍` prettier/prettier
82:66 warning Delete `␍` prettier/prettier
83:12 warning Delete `␍` prettier/prettier
84:1 warning Delete `␍` prettier/prettier
85:19 warning Delete `␍` prettier/prettier
86:50 warning Delete `␍` prettier/prettier
87:69 warning Delete `␍` prettier/prettier
88:69 warning Delete `␍` prettier/prettier
89:69 warning Delete `␍` prettier/prettier
90:69 warning Delete `␍` prettier/prettier
91:69 warning Delete `␍` prettier/prettier
92:69 warning Delete `␍` prettier/prettier
93:69 warning Delete `␍` prettier/prettier
94:69 warning Delete `␍` prettier/prettier
95:69 warning Delete `␍` prettier/prettier
96:71 warning Delete `␍` prettier/prettier
97:71 warning Delete `␍` prettier/prettier
98:71 warning Delete `␍` prettier/prettier
99:71 warning Delete `␍` prettier/prettier
100:71 warning Delete `␍` prettier/prettier
101:1 warning Delete `␍` prettier/prettier
102:33 warning Delete `␍` prettier/prettier
103:26 warning Delete `␍` prettier/prettier
104:16 warning Delete `␍` prettier/prettier
105:19 warning Delete `␍` prettier/prettier
106:19 warning Delete `␍` prettier/prettier
107:19 warning Delete `␍` prettier/prettier
108:19 warning Delete `␍` prettier/prettier
109:19 warning Delete `␍` prettier/prettier
110:19 warning Delete `␍` prettier/prettier
111:19 warning Delete `␍` prettier/prettier
112:19 warning Delete `␍` prettier/prettier
113:19 warning Delete `␍` prettier/prettier
114:20 warning Delete `␍` prettier/prettier
115:20 warning Delete `␍` prettier/prettier
116:20 warning Delete `␍` prettier/prettier
117:20 warning Delete `␍` prettier/prettier
118:5 warning Delete `␍` prettier/prettier
119:12 warning Delete `␍` prettier/prettier
120:22 warning Delete `␍` prettier/prettier
121:56 warning Delete `␍` prettier/prettier
122:8 warning Delete `␍` prettier/prettier
123:5 warning Delete `␍` prettier/prettier
124:4 warning Delete `␍` prettier/prettier
125:10 warning Delete `␍` prettier/prettier

✖ 125 problems (0 errors, 125 warnings)
0 errors and 125 warnings potentially fixable with the `--fix` option.

how to fix problem ?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Thank you for your feedback.

We reproduce this issue, it will be fixed in the upcoming Metronic release.



Hi Lauris

Error is still on metronic_v8.0.38 when compiling demo8 under vue using yarn

I added to .eslintrc.js the line from Orthan Gazi

rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"prettier/prettier": ["error", { endOfLine: "auto" }],
},

Thanks



The problem solutions;

.eslintrc.js file in add

'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
]


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(