[Playground] two slash @filename not work in typescript playground · Issue #52666 · microsoft/TypeScript (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@magic-akari

Description

@magic-akari

Bug Report

🔎 Search Terms

🕗 Version & Regression Information

Playground link with relevant code

💻 Code

Code from https://github.com/microsoft/TypeScript-Website/tree/v2/packages/ts-twoslasher#import_filests

// @filename: file-with-export.ts export const helloWorld = "Example string"

// @filename: index.ts import { helloWorld } from "./file-with-export" console.log(helloWorld)

🙁 Actual behavior

TS2307: Cannot find module './file-with-export' or its corresponding type declarations.

🙂 Expected behavior

It works.