title: How can I resolve the error: "Cannot find name 'acquireVsCodeApi'"? In vs code extension web view development
body: <p>I am creating a vs code extension that contains a web view. I am new to this extension development and following <a href="https://github.com/microsoft/vscode-extension-samples/tree/main/webview-view-sample" rel="nofollow noreferrer">this repo</a>. When I write this exactly same code in my editor, I face issue <a href="https://github.com/microsoft/vscode-extension-samples/blob/dcbf3a4f50609e02f6c6f2ade99bbedfc8b5ef94/webview-view-sample/media/main.js#L6" rel="nofollow noreferrer">here, in this line</a>. The error saying: <strong>Cannot find name 'acquireVsCodeApi'.</strong> How can I get this error resolved? The folder structure is same as the git sample project and all the npm dependencies are installed.</p>
  <p><a href="https://i.stack.imgur.com/QMksH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QMksH.png" alt="enter image description here" /></a></p>