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

Extra slashes allowed in import paths #32202

Open
mjbvz opened this issue Jul 1, 2019 · 0 comments
Open

Extra slashes allowed in import paths #32202

mjbvz opened this issue Jul 1, 2019 · 0 comments
Labels
Bug A bug in TypeScript
Milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Jul 1, 2019

TypeScript Version: 3.6.0-dev.20190628

Search Terms:

  • import
  • require
  • slash / separator

Code
Create an import that uses multiple / instead of a single one:

import { abc } from ".///////folder///////y";

console.log(abc);

Expected behavior:
An error is produced. This is not valid a valid import in many module loaders

Actual behavior:
No error

Playground Link:

Related Issues:

mjbvz referenced this issue in microsoft/vscode Jul 1, 2019
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Jul 1, 2019
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants