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

Editor cannot find ANY modules when files use '.es6' extension. #9398

Closed
Symbitic opened this issue Jul 16, 2016 · 1 comment
Closed

Editor cannot find ANY modules when files use '.es6' extension. #9398

Symbitic opened this issue Jul 16, 2016 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues

Comments

@Symbitic
Copy link

  • VSCode Version: 1.3.1
  • OS Version: Fedora 24

Steps to Reproduce:

  1. Rename an existing JavaScript file to use the extension '.es6' (e.x. rename 'server.js' to 'server.es6').
  2. vscode will complain that every module (both local and node_modules) cannot be found. For example, given the following code:
import Promise from 'bluebird';
import Router from './router.es6';

vscode will say that "Cannot find module 'bluebird'" and "Cannot find module './router.es6'. Removing the extension from the import statement (import Router from './router') doesn't fix it.

Screenshot:

vscode

My jsconfig.json:

{
  "compilerOptions": {
    "target": "ES6",
    "module": "es2015",
    "allowSyntheticDefaultImports": true,
    "noResolve": true
  }
}

Dev Tools Console did not display any warnings or errors, and I created the above screenshot while in --disable-extensions mode.

@dbaeumer
Copy link
Member

dbaeumer commented Aug 4, 2016

Dups microsoft/TypeScript#9551

@dbaeumer dbaeumer added *duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues labels Aug 4, 2016
@dbaeumer dbaeumer closed this as completed Aug 4, 2016
@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
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

2 participants