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

Đang mở
#299 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript, webpack
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

Tái hiện lỗi cài đặt bằng đường dẫn được báo cáo tại @opentiny/fluent-editor/node_modules/quill/themes/bubble.js và thiết lập dự án UMi. Bắt đầu bằng cách truy vết cách bản build UMi/Webpack xử lý dependency này và cú pháp trường tĩnh của class được báo cáo. Hoàn tất khi plugin được cài đặt và trang được build mà không có lỗi phân tích module.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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);
页面报错

Ngôn ngữ chính
TypeScript
Star
538
Fork
72
Merge trung bình
14 ngày 8 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opentiny/tiny-editor

Tất cả issue của opentiny/tiny-editor

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.