Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jusper-dk opened this issue Apr 18, 2017 · 4 comments

Comments

@jusper-dk
Copy link

Installed product versions

  • Visual Studio 2017 professional
  • This extension: [example 1.1.21]

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.:
<script lang="ts"> import Loader from './Loader.ts' export default Loader </script>

Current behavior

The warning appear on 'import' directive.

Expected behavior

No warnings.

@madskristensen
Copy link
Owner

madskristensen commented Apr 18, 2017

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
Copy link

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

@madskristensen
Copy link
Owner

Not that I know of

@jim-brown-fst
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants