container.component.d.ts is not exported from @swimlane/ngx-dnd... Error when start
Eve-Sama opened this issue · comments
Eve-Sama commented
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:
- ngx-dnd version: 8.2.0
- Angular version: 9.1.9
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Eve-Sama commented
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';