You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a html file with JavaScript module in it, like so:
<script type="module">
import * as LOADER from './path/loader.js'
import { add } from '/path/ui.js'
</script>
I run a server at localhost, so I have a local folder set as a root (under Win10) and the file works perfectly in the browser.
When I open this file in VS Code, it doesn't understand paths mentioned in import statements, relative or absolute, I can't use Go To Definition or Peek or open imported .js files.
Is it possible to make VS Code work with import statements?
I created jsconfig.json file in the same folder as the html file:
I have a html file with JavaScript module in it, like so:
I run a server at localhost, so I have a local folder set as a root (under Win10) and the file works perfectly in the browser.
When I open this file in VS Code, it doesn't understand paths mentioned in import statements, relative or absolute, I can't use Go To Definition or Peek or open imported .js files.
Is it possible to make VS Code work with import statements?
I created jsconfig.json file in the same folder as the html file:
but it doesn't make any difference.
The text was updated successfully, but these errors were encountered: