-
Notifications
You must be signed in to change notification settings - Fork 311
Barrel stopped working after scripts update. #105
Comments
Hello, thanks for using Ionic! Could you provide an example of the line that is causing this error? |
@kleeb s |
Yes, ComponentData is an interface, that is put in the barrel. |
@kleeb Would you mind sharing a repo that we can use to reproduce this issue? |
@jgw96 will do my best to reproduce on some smaller piece of code and share it, will get back asap |
This is the same problem as mentioned by others in #64: interfaces that are used for type checking and are never implemented are removed, throwing an error. This is unrelated to barrels and also happens when importing directly. cc @10freefingers |
I cannot reproduce it on smaller project. From around 100 interfaces only 1 was causing problem. Probably some inheritance and usage of those interfaces in some special way inside template is causing problems. |
I had the same problem with interfaces that are never implemented getting stripped where I depended on them for type checking. |
I'm also seeing this with |
Look like its fixed with Ionic RC1 + Angular 2.1.0. |
Same here! |
We are using Angular barrel for file imports, and as our project is already quite huge, we cannot totally refactor it.
It stopped working after yesterday's Adam's commit: 556d2e3
and now we are getting:
Error: Module .../ionic/src/app/index.ts does not export ComponentData (imported by .../src/components/module-components/module-component/module-component.ts) at Module.trace (.../node_modules/rollup/dist/rollup.js:7706:29)
when I am switching back to the rollup conf, that contained ngTemplate() plugin, it works again.
The text was updated successfully, but these errors were encountered: