Skip to content

Circular dependency: 'dd-touch.js' incorrectly imports 'Utils' from './gridstack' #2980

Closed

Description

@timclutton

Subject of the issue

dd-touch.js imports Utils via:

import { Utils } from './gridstack';

This creates a circular dependency warning when bundling (in my case with rollup.js).

The other dd-*.js files import Utils via:

import { Utils } from './utils';

Simply changing the import statement in dd-touch.js to match the other files resolves the problem.

Your environment

gridstack.js 11.4.0

Activity

  1. added a commit that references this issue on Mar 4, 2025
    af1970c
  2. adumesny commented on Mar 4, 2025

    @adumesny
    Member

    thank you for the find!

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