vscode-reasonml
                                
                                 vscode-reasonml copied to clipboard
                                
                                    vscode-reasonml copied to clipboard
                            
                            
                            
                        It does not recognize the right attribute
Hi all
On the following component:
let component = ReasonReact.statelessComponent("NavItemView");
let make = (~text: string, ~href: string, ~icon: string, _children) => {
  ...component,
  render: (_self) => {
    <li className="nav-item">
      <a className="nav-link" href={href}>
        <i className=("fa fa-fw " ++ icon)></i>
        <span className="nav-link-text">{ReasonReact.string(text)}</span>
      </a>
    </li>
  }
};
Use it like:
 As you can recognize, the compiler complains. But I am using component correctly.
As you can recognize, the compiler complains. But I am using component correctly.
Thanks
@bifunctor Merlin only "sees" changes in modules signatures after a compilation takes place. In your case, it seems that you changed the signature of the make function in NavItemView to add a new prop icon? In that case, you'd need to rebuild first by calling bsb -make-world (or adding bsb to reason.diagnostics.tools and saving), so Merlin can get the latest signatures.
Please let us know if the issue is solved after rebuilding.