microsoft / microsoft/TypeScript-Sublime-Plugin
Sublime complaining while VSCode is not?
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.7k
- フォーク
- 236
- 平均マージ
- 21日 13時間
- マージ済み PR(30日)
- 1
説明
This may well be user error, but I'm seeing error messages appear only in SublimeText such as:
Module '"/home/ian/src/monorep/node_modules/@types/react/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
The code itself is relatively straight forward:
import React from 'react';
import { Button } from '.';
export default {
title: 'Button',
argTypes: { onClick: { action: 'clicked' } },
};
const Template = (args) => <Button onClick={args.onClick} />;
export const Default = Template.bind({});
The same code is fine within VSCode and does not show an issue.
You can see the file here https://github.com/IPWright83/monorep/blob/ts-bug/packages/components/src/components/Button/Button.stories.tsx
You can access a reproduction by cloning https://github.com/IPWright83/monorep and switching to the ts-bug branch and opening that file.

コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた monorep の再現環境を Clone し、ts-bug ブランチに切り替えて、packages/components/src/components/Button/Button.stories.tsx を開きます。このファイルについて SublimeText に表示される診断と VSCode の診断を比較し、なぜ異なるのかを追跡します。完了の条件は、相違が解消されるか、再現可能な結果とともに原因が文書化されていることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100