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

Add support for import() #26231

Closed
empz opened this issue May 8, 2017 · 1 comment
Closed

Add support for import() #26231

empz opened this issue May 8, 2017 · 1 comment
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@empz
Copy link

empz commented May 8, 2017

VSCode: 1.12.1

I'm using Webpack 2 import() to dynamically load a scss file like this:

import("./styles/main.scss");

VSCode throws the following error:

severity: 'Error'
message: 'Declaration or statement expected.'
at: '1,1'
source: 'js'

Is there any way to suppress this error?

@mjbvz mjbvz assigned mjbvz and unassigned aeschli May 8, 2017
@mjbvz mjbvz added javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels May 8, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented May 8, 2017

We are tracking this issue upstream: microsoft/TypeScript#14495

You cannot suppress that individual warning but you can suppress all error checking by setting "javascript.validate.enable": false if this error is getting in the way

Closing as upstream

@mjbvz mjbvz closed this as completed May 8, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants