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

Đang mở
#337 3 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
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 vấn đề với TinyEditor được hiển thị và các import của style.css trong một dự án webpack 5. Kiểm tra đường dẫn package **/es/modules/link/modules và cách nó phân giải quill/themes/base; hoàn thành khi các import tương tự biên dịch thành công mà không có lỗi phân giải module.

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

Mô tả

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

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.