Skip to content

Module '"ngx-file-drag-drop"' has no exported member 'NgxFileDragDropModule'. #51

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

Open
HolgerSeguinEH opened this issue Feb 12, 2025 · 3 comments

Comments

@HolgerSeguinEH
Copy link

I am using version “ngx-file-drag-drop”: “^10.0.0” for an angular project with angular 18.

When integrating the module into my module, I get the following error message during import:

import { NgxFileDragDropModule } from 'ngx-file-drag-drop';

@meblum
Copy link
Collaborator

meblum commented Feb 12, 2025

What is the error message?

@meblum
Copy link
Collaborator

meblum commented Feb 12, 2025

Oh, you're trying to import it as a module. You need to import it as a standalone component instead.

import { Component } from '@angular/core';
import { NgxFileDragDropComponent } from 'ngx-file-drag-drop';

@Component({
  selector: 'my-selector',
  standalone: true,
  imports: [
    NgxFileDragDropComponent,
  ],
  templateUrl: './app.component.html',
  styleUrl: './app.component.css',
})

I will need update the documentation and examples.

@HolgerSeguinEH
Copy link
Author

Thank's

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

No branches or pull requests

2 participants