Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

[VUE] on vscode - some components are in error (IDE only)


Hi all,

I have an error using the vscode IDE and the metronic demo1 for vuejs.
I do not have any custom modification in it yet, so the code is the original one.
I am using VSCode in a macos running all the last version of it.
I am using the extension volar for VUE.

Some of the components are in error in the UI, when using it.
Example:

<pre lang="html">
<Field
class="form-control form-control-lg form-control-solid"
type="password"
placeholder=""
name="password_confirmation"
autocomplete="off"
/>


Is all highlighted of red and the error is the following:
JSX element class does not support attributes because it does not have a 'props' property.ts(2607)

Is it my env to have some problems?
Do anybody else had and solved this issue?

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Could you please clarify your Metronic version ?

Regards.



Hi, the version is 8.1.1


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(