-
Notifications
You must be signed in to change notification settings - Fork 12k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get error "Module not found: Error: Can't resolve" after build when I import d.ts file #15411
Comments
Hi, I just had a quick look and there is DevExtreme also seems to offer an Angular package https://js.devexpress.com/Documentation/Guide/Angular_Components/Getting_Started/Add_DevExtreme_to_an_Angular_CLI_Application/#Import_DevExtreme_Modules More more thing which is unrelated to the issue is that import to your library in From import { MyLibModule } from '../../dist/my-lib'; To import { MyLibModule } from 'my-lib'; That said, this seems to be a support request and not a bug in Angular CLI. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation. |
Why is the failure correct? I want to use types from d.ts in my lib. It can be another d.ts, not only dx.all. After build, I have unnecessary import in a js file and I get the error |
Perhaps this is due to this issue. But I do not understand why this issue was closed. The problem is still reproducing. |
You are right, for types only it should matter the import. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Description
I created a component in which I use types from a d.ts file. Import to d.ts is not deleted in js file after build and I get the error "Module not found: Error: Can't resolve "
馃敩 Minimal Reproduction
For reproduction, you can use this project
and the following steps:
After it, you get the error
馃敟 Exception or Error
馃實 Your Environment
Angular Version:
Anything else relevant?
Perhaps this is due to this issue. But I do not understand why this issue was closed. The problem is still reproducing.
The text was updated successfully, but these errors were encountered: