Skip to content

[html] support imports in embedded JavaScript #114115

@Krutsch

Description

@Krutsch
  • VSCode Version: 1.52.1
  • OS Version: Windows 10.0.19042.685

Steps to Reproduce:

  1. Create a HTML File with <script type="module">...</script>
  2. Add // @ts-check and import any npm package
  3. No intellisense

Does this issue occur when all extensions are disabled?: Yes

If we would do the same steps with a .js file, IntelliSense will work:
1

It is not working in .html however:
2

Error:
Cannot find module 'hydro-js'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?javascript

Tried troubleshooting:

  1. Created a jsconfig.json file
  2. Tried the above error suggestions.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhtmlHTML support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions