Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Bad paths after bundling with rollup following react 18 upgrade

Đang mở
#752 0 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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, react, rollup
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

Start by comparing the React 17 and React 18 bundled index.js examples and inspect the Rollup configuration. Trace how imports from ./utils/domFns, ./utils/positionFns, ./utils/shims, and ./utils/log are emitted after the React 18 upgrade. Done means the bundled output no longer requires the unbundled /utils/ directory.

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

Mô tả

Hey, so perhaps this is an issue with my rollup configuration but I thought this would be the best place to post. After upgrading to react 18, the resulting bundled file is looking for a /utils/ directory, which is part of the un-bundled react-draggable module. I'm not seeing a clear way to get the contents of utils to properly bundle as they naturally did in react 17.

Before the upgrade the resulting bundle index.js (react 17)

var _positionFns = positionFns;
var _shims = shims;
var _DraggableCore = _interopRequireDefault(DraggableCore);
var _log = _interopRequireDefault(log);

After the upgrade the resulting bundle index.js (react 18)

var _positionFns = require("./utils/positionFns");
var _shims = require("./utils/shims");
var _DraggableCore = _interopRequireDefault(require("./DraggableCore"));
var _log = _interopRequireDefault(require("./utils/log"));
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.