🐛 [Bug]: webpack 5 编译报错,无法使用

オープン
#337 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript, webpack

調査の方向性

webpack 5 プロジェクトで、示されている TinyEditor と style.css の import を使って問題を再現します。パッケージパス **/es/modules/link/modules と quill/themes/base の解決を調査します。同じ import がモジュール解決エラーなしで正常にコンパイルできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Version

4.0-alpha.2

Link to minimal reproduction

***.vue 中引入

import TinyEditor from '@opentiny/fluent-editor';
import '@opentiny/fluent-editor/style.css'; // 引入样式

webpack 5 编译时报错

Can't resolve 'quill/themes/base' in '**/es/modules/link/modules' 
Step to reproduce

import TinyEditor from '@opentiny/fluent-editor';
import '@opentiny/fluent-editor/style.css'; // 引入样式

webpack 5 编译时报错

What is expected

***.vue 中引入

import TinyEditor from '@opentiny/fluent-editor';
import '@opentiny/fluent-editor/style.css'; // 引入样式

webpack 5 编译时报错

Can't resolve 'quill/themes/base' in '**/es/modules/link/modules' 
What is actually happening

No response

What is your project name

cws

Any additional comments (optional)

No response

主要言語
TypeScript
スター
538
フォーク
72
平均マージ
14日 8時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opentiny/tiny-editor のほかの issue

opentiny/tiny-editor の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。