-
Notifications
You must be signed in to change notification settings - Fork 310
Service Dependency Injection doesn't work always with version 0.0.39 #325
Comments
I have a problem force bundler |
If you run Thanks, |
No, it fails on Thanks |
@danbucholtz Also I updated to latest ionic-app-scripts to latest version 0.0.42 and the same issue still persists. On a side note new build error reporting looks great 👏 👏 👏 First of all I was expecting my error to be reported and for sec thought why its not working. Thanks |
@danbucholtz Any updates on this? Problem still persist in I hope we some sort of fix for this as I have used barrels heavily in my project. |
Hello all! I am going to close this issue as a duplicate of #315. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Short description of the problem:
Service dependency injection doesn't work always with version 0.0.39 (default is webpack with this version), however same code without any changes works fine for version 0.0.36 (default is roll-up with this version).
I am using Angular 2 barrels to organise my imports. Upon digging up the problem found that the service getting failed worked fine if I import it as direct file reference.
What behaviour are you expecting?
Service dependency injection should work regardless of webpack, rollup or barrels being used or not.
Steps to reproduce:
import { LoginService } from '../../account';
TO
import { LoginService } from '../../account/login/login.service';
OR
import { LoginService } from './login.service';
Sample Code
Which @ionic/app-scripts version are you using?
Your system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.39
OS: Windows 7 SP1
Node Version: v6.9.1
The text was updated successfully, but these errors were encountered: