Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moveColumn() causes compilation error due to DropPosition import #15377

Open
georgianastasov opened this issue Feb 18, 2025 · 0 comments
Open

Comments

@georgianastasov
Copy link
Contributor

Description

When attempting to use the moveColumn() API in IgxGrid with the DropPosition enum, a compilation error occurs. This happens because DropPosition imports from an incorrect path:

'igniteui-angular/lib/grids/moving/moving.service'

This leads to the following error:

[plugin:vite:import-analysis] Missing "./lib/grids/moving/moving.service" specifier in "igniteui-angular" package

  • igniteui-angular version: latest
  • browser: all

Steps to Reproduce

  1. Load an IgxGrid with columns.
  2. Attempt to move a column using the moveColumn() method:
   const firstColumn = this.myGrid.getColumnByName('firstColumn');
   const thirdColumn = this.myGrid.getColumnByName('thirdColumn');
   this.myGrid.moveColumn(firstColumn, thirdColumn, DropPosition.AfterDropTarget);
  1. Run the application.
  2. The compilation fails with the error related to moving.service import.

Result

The application fails to compile due to a missing export path for moving.service.

Expected result

The moveColumn() API should work without errors, allowing columns to be repositioned dynamically using DropPosition.

Attachments

Available sample.

Image

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

No branches or pull requests

1 participant