[Playground] two slash @filename
not work in typescript playground · Issue #52666 · microsoft/TypeScript (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Bug Report
🔎 Search Terms
- playground
- two slash
- filename
🕗 Version & Regression Information
- This is a crash
- This changed between versions ______ and _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
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.