Skip to content

the new version 4.5.0 会导致系统打包报错 #780

Description

@rodchen-king

Image

react:17.0.2

Activity

  1. qiaowenjiong commented on Jun 26, 2025

    @qiaowenjiong

    可选链操作这部分代码没有被压缩

  2. heningyuan6256 commented on Jun 26, 2025

    @heningyuan6256
    • 1
  3. rodchen-king commented on Jun 26, 2025

    @rodchen-king
    Author

    可选链操作这部分代码没有被压缩

    这种改动应该切换大版本吧,不然影响有点多。

  4. rodchen-king commented on Jun 26, 2025

    @rodchen-king
    Author

    关键引用关系是:引用的react-resizable,react-resizable引用的react-draggable。期望可以在重新发个包处理这个问题。做的改动切换到大版本。

    处理方案是暂时是锁定了这个包版本。

  5. heningyuan6256 commented on Jun 26, 2025

    @heningyuan6256

    主工程下package
    "resolutions": {
    "react-draggable": "4.4.4"
    }

    就可以解决

  6. cervotoc commented on Jun 30, 2025

    @cervotoc

    When can I expect a fix? Would it be possible to unpublish 4.5.0?

  7. RED523 commented on Jul 2, 2025

    @RED523

    关键引用关系是:引用的react-resizable,react-resizable引用的react-draggable。期望可以在重新发个包处理这个问题。做的改动切换到大版本。

    处理方案是暂时是锁定了这个包版本。

    对,幽灵依赖。先锁版本解决。

  8. oleg88mo commented on Jul 3, 2025

    @oleg88mo

    This error also occurs on my library version "react-grid-layout": "1.4.2"
    I think the library "react-grid-layout" uses "react-draggable" under the hood

    I can't update the library to the latest version
    What should I do?
    When can I expect the error to be fixed?

    Simple demo of my component:

    import RGL, { WidthProvider } from 'react-grid-layout';
    import './css/grid-layout.css';
    import './css/grid-layout-resizable.css';

    const ReactGridLayout = WidthProvider(RGL);

    export default function Dashboards() {
    return (
    <>{useMemo(() => {
    return (
    <ReactGridLayout layout={dashboars} onLayoutChange={onLayoutChange} onDragStop={onDragStop} onResizeStop={onResizeStop} cols={cols || 10}>{dashboars.map(item=> {return (<divkey={item.id}data-grid={item}>// *** content here);})}
    );
    }, [dashboars])}
    </>
    );
    }

    Dashboard item example what I'm using in data-grid={item} is:

    const item = {
    w: 6,
    h: 3,
    maxW: 8,
    maxH: 4,
    minW: 4,
    minH: 2,
    static: false,
    name: 'Name',
    x: 0,
    y: 0,
    };

  9. STRML commented on Sep 27, 2026

    @STRML
    Collaborator

    This was generated by AI during triage.

    Fixed as of 4.6.0. The build moved to tsup with target: es2019, which compiles ?. and ?? down. build/cjs/cjs.js in 4.7.2 contains neither. Upgrade to 4.7.2 and remove the resolutions pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions