-
Notifications
You must be signed in to change notification settings - Fork 305
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
Importing const from barrel = undefined #72
Comments
Hi @montella1507, thanks for your report, but this doesn't tell much. A repo with the issue would be helpful. |
Hello, ok i will try to simulate it in your example app. |
@thymikee i have resolved my issue, yet i dont know why it occurs.. my project structure: That index.ts was reexported: it takes "from './app'" as app.module.ts file.. So it is error... |
Try the latest version of the preset |
Current: i would try and i will let you know. |
4.0.0-beta.1 works. Thank you :-)) Uff. i have spent 6 hours on everything :-) Reworked imports, tried to get rid of several barrels... Madge tool, ng tool for circullar dependencies :D unfortunately i just had to wait for the new version of preset :-) |
The fix for issues like this was a part of v3, which was released some time ago. Glad it worked for you :) |
//index.ts
import * as components from './components';
export const COMPONENTS = [
components.WidgetComponent
];
// module.ts
import { COMPONENTS } from './index';
@NgModule({
declarations: [
...COMPONENTS
],
= components are undefined.
The text was updated successfully, but these errors were encountered: