4.5 version causes breaking during startup

Đang mở
#781 1 bình luận 2 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
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
babel, javascript, react
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

Reproduce the startup compilation failure and inspect node_modules/react-draggable/build/cjs/Draggable.js around line 260, along with the babel-loader processing shown in the report. Determine the compatibility issue causing the parse failure and verify that the application starts without this compile error.

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

Mô tả

`Failed to compile.

./node_modules/react-draggable/build/cjs/Draggable.js 260:22
Module parse failed: Unexpected token (260:22)
File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | // the underlying DOM node ourselves. See the README for more information.
    | findDOMNode() /: ?HTMLElement/{
return this.props?.nodeRef?.current ?? _reactDom.default.findDOMNode(this);

| }
| render() /: ReactElement/{`

Ngôn ngữ chính
JavaScript
Star
9.3k
Fork
1k
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
4

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 react-grid-layout/react-draggable

Tất cả issue của react-grid-layout/react-draggable

Issue tương tự

Thêm issue về JavaScript

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.