🐛 [Bug]: UMi 3.x项目安装该插件页面报错

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript, webpack

調査の方向性

@opentiny/fluent-editor/node_modules/quill/themes/bubble.js にある報告されたパスと UMi プロジェクトの設定を使用して、インストール失敗を再現します。まず、UMi/Webpack のビルドがこの依存関係と、報告されている静的クラスフィールド構文をどのように処理するかを追跡します。プラグインがインストールされ、モジュールの解析エラーなしでページをビルドできれば完了です。

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

説明

bug
Version

页面报错

Link to minimal reproduction

/root/workspace/3.1.0-dev/4.0.0-dev/cmp-ui/node_modules/@opentiny/fluent-editor/node_modules/quill/themes/bubble.js 13:18
Module parse failed: Unexpected token (13:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }, 'blockquote']];
| class BubbleTooltip extends BaseTooltip {

static TEMPLATE = ['', '

', '', '', ''].join('');
| constructor(quill, bounds) {
| super(quill, bounds);
页面报错

Step to reproduce

/root/workspace/3.1.0-dev/4.0.0-dev/cmp-ui/node_modules/@opentiny/fluent-editor/node_modules/quill/themes/bubble.js 13:18
Module parse failed: Unexpected token (13:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }, 'blockquote']];
| class BubbleTooltip extends BaseTooltip {

static TEMPLATE = ['', '

', '', '', ''].join('');
| constructor(quill, bounds) {
| super(quill, bounds);
页面报错

What is expected

No response

What is actually happening

No response

What is your project name

wade

Any additional comments (optional)

/root/workspace/3.1.0-dev/4.0.0-dev/cmp-ui/node_modules/@opentiny/fluent-editor/node_modules/quill/themes/bubble.js 13:18
Module parse failed: Unexpected token (13:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }, 'blockquote']];
| class BubbleTooltip extends BaseTooltip {

static TEMPLATE = ['', '

', '', '', ''].join('');
| constructor(quill, bounds) {
| super(quill, bounds);
页面报错

主要言語
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 を短くまとめたダイジェスト。