swimlane / ngx-dnd

🕶 Drag, Drop and Sorting Library for Angular2 and beyond!
https://swimlane.github.io/ngx-dnd/
MIT License
575 stars 135 forks source link

container.component.d.ts is not exported from @swimlane/ngx-dnd... Error when start #171

Closed Eve-Sama closed 3 years ago

Eve-Sama commented 3 years ago

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Sorry, we will not be able to answer every support request.  Please consider other venues for support requests

When I start serve, the terminal shows below error:

ERROR in Symbol ContainerComponent declared in E:/Development Code/work/pc-fe-ja/node_modules/@swimlane/ngx-dnd/lib/components/container/container.component.d.ts is not exported from @swimlane/ngx-dnd/lib/ngx-dnd.module (import into E:/Development Code/work/pc-fe-ja/apps/pc/src/app/pages/app-item/app-form/components/edit-widgets/remote-lookup-config/path-editor/path-editor.component.ts)

I don't know why the in end of error, it shows my bussiness file path-editor.component.ts. Because I have never use ngx-dnd before. And this file do not container any code about ngx-dnd Current behavior

Expected behavior

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Eve-Sama commented 3 years ago

I got it. Because I use the auto import by VSC.

 import { NgxDnDModule } from '@swimlane/ngx-dnd/lib/ngx-dnd.module';

I modify it to below, then it works.

 import { NgxDnDModule } from '@swimlane/ngx-dnd';