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

[bug report] Can't resolve 'dragula' in '\node_modules\ng2-dragula\fesm2022' #1095

Open
5 tasks done
bardhyliis opened this issue Jul 22, 2023 · 6 comments
Open
5 tasks done

Comments

@bardhyliis
Copy link

bardhyliis commented Jul 22, 2023

Describe the bug (required)

I just installed the latest version on angular 16 and it is giving me this error when I run the app

./node_modules/ng2-dragula/fesm2022/ng2-dragula.mjs:5:0-39 - Error: Module not found: Error: Can't resolve 'dragula' in 'C:\Users\asus\Desktop\app\node_modules\ng2-dragula\fesm2022'

To Reproduce (required)

Steps to reproduce the behavior:

I really don't have anything else except just installing it.

Screenshots (optional)

image

Versions (required)

  • "@angular/core": "^16.0.2"
  • "ng2-dragula": "^5.0.0",
@bongbx
Copy link

bongbx commented Jul 24, 2023

hi @bardhyliis try install dragula: npm i dragula

it seems in version 2.1.1: dragula is required package if you use ng2-dragula (like ng2-charts)

@JGSolutions
Copy link

JGSolutions commented Aug 25, 2023

Having the same issue. Update package to 5.0.1

@bongbx yes v2.1.1 works which we had that package version installed for the past 2 years.

@JGSolutions
Copy link

Any updates on this?

@JGSolutions
Copy link

@bardhyliis Did you solve this issue?

@entc
Copy link

entc commented Apr 8, 2024

Wanted to try out this module and run into the same issue:

Angular 16.1.6
ng2-dragula: 5.0.2

npm i --legacy-peer-deps ng2-dragula

./node_modules/ng2-dragula/fesm2022/ng2-dragula.mjs:5:0-39 - Error: Module not found: Error: Can't resolve 'dragula' in '/home/..../node_modules/ng2-dragula/fesm2022'

Error: node_modules/ng2-dragula/DragulaOptions.d.ts:1:51 - error TS2307: Cannot find module 'dragula' or its corresponding type declarations.

1 import { DragulaOptions as OriginalOptions } from 'dragula';
~~~~~~~~~

Error: node_modules/ng2-dragula/DrakeWithModels.d.ts:1:23 - error TS2307: Cannot find module 'dragula' or its corresponding type declarations.

1 import { Drake } from 'dragula';
~~~~~~~~~

Error: node_modules/ng2-dragula/MockDrake.d.ts:5:23 - error TS2307: Cannot find module 'dragula' or its corresponding type declarations.

5 import { Drake } from 'dragula';
~~~~~~~~~

import { DragulaModule } from 'ng2-dragula';

I guess the problem might be solved by using 'ng2-dragula' instead of 'dragula'

@mlimap
Copy link

mlimap commented May 21, 2024

npm i dragula --save

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

5 participants