madskristensen / VuePack2017

A Visual Studio extension
Other
37 stars 14 forks source link

I get a warning in .vue files: cannot use imports, exports and module augmentations when '--module' is none. #6

Open jusper-dk opened 7 years ago

jusper-dk commented 7 years ago

Installed product versions

Description

I get a warning in .vue files: cannot use imports, exports and module augmentations when '--module' is 'none' whereas the module type is specified in my .tsconfig file: { "compilerOptions": { "module": "es2015", .... }

Where should I specify it else?

Steps to recreate

  1. Create a .tsconfig file and set module property to 'es2015'
  2. Create a .vue file containing a script e.g.:

Current behavior

The warning appear on 'import' directive.

Expected behavior

No warnings.

madskristensen commented 7 years ago

Unfortunately the HTML editor in VS doesn't yet support Typescript blocks, but it is coming. There is nothing this extension can do to fix it

/cc @bowdenk7

michaellewiswilson commented 6 years ago

Is there any new information on this or any way to monitor the progress of Typescript block support in VS?

madskristensen commented 6 years ago

Not that I know of

jim-brown-fst commented 5 years ago

Unfortunately the HTML editor in VS doesn't yet support Typescript blocks, but it is coming. There is nothing this extension can do to fix it

/cc @bowdenk7

It's coming? Has it come yet? It's 2.5 years?