You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this mean you're leaving SystemJS behind? And will you provide an upgrade route in that case through ng upgrade or similar? I've built a fairly large app with the cli now, and I'd rather not scrap it.. :3
Can you tell me to load a .scss file? I see there is sass support built in and I am able to get .scss files to process for individual components, but I can't figure out how to load a master style for the whole web app.
@filipesilva, @TheLarkInn: We're punting lazy loading until the webpack branch makes it to master. It's a difficult problem with many moving pieces and we will need a proper prototyping and design phase to solve it.
Great work @filipesilva and @TheLarkInn. I can confirm SCSS is working out of the box with --style scss flag. ng test and ng build --prod broken though
@filipesilva I have created new project and ran ng test
Tapass-MacBook-Pro:digiadmin tapas-pc$ ng test
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
ERROR in Entry module not found: Error: Can't resolve '/Users/tapas-pc/Documents/Work/digiadmin/undefined/test.ts' in '/Users/tapas-pc/Documents/Work/OpenSourceWork/Angular/angular-cli/addon/ng2/models'
ERROR in Entry module not found: Error: Can't resolve 'sourcemap-istanbul-instrumenter-loader' in '/Users/tapas-pc/Documents/Work/OpenSourceWork/Angular/angular-cli/addon/ng2/models'
@tapas4java looks like missing dependencies. Did you npm install on the webpack branch after checking it out? I know that these dependencies work, because our CI installs a project from scratch.
Thanks @filipesilva ....After npm install tests are working fine. But still getting below message even though it is not blocking anything. Not sure what is that undefined in the path.
ERROR in Entry module not found: Error: Can't resolve '/Users/tapas-pc/Documents/Work/digiadmin/undefined/test.ts' in '/Users/tapas-pc/Documents/Work/OpenSourceWork/Angular/angular-cli/addon/ng2/models'
@filipesilva I'm pretty sure as well that TS2.0 has nothing to do with it. The main problem is the generated sourcemap files referencing to non-existent source files. Adding src from the angularfire2 repo manually, and changing the sources attribute in the .map files makes the warnings go away. Should probably just ask @davideast to fix the publishing so it goes away (and the ngrx guys as well).
Hello everyone,
I'm not sure whether this is the best place to report this. I have been playing with the webpack branch (and showing people how to do it, explaining it's not stable yet of course).
Someone asked me about using jQuery with that setup. I wouldn't recommend doing that in the first place, but my finding was interesting.
Since we don't use separate typings for e2e and src, this means src gets the global $ declaration from protractor. This throws TS error because of the conflicting declarations.
You can see a sample error here. I have also added to it some steps that can be used to separate the typings manually so that you don't get this error.
But, what I'm asking in this thread is:
Does it make sense to separate the typings for src and e2e?
(maybe via different tsconfig and types as mentioned in #1449?)
Thanks everyone. This issue is now closed as the WebPack branch is merged. If you have build issues, please create separate issues on github instead of refering to this.
A NPM package will be published sometime this week with this. It will use a separate dist-tag, probably named webpack.
I want to specially thank @TheLarkInn and @filipesilva for their work on this. Without you, it's clear we'd still be using Broccoli. Good work to both of you!
Reacted by MARTIN LEOPOLD GROEDL, John Smith, Sean Larkin, Filipe Silva, Philippe Kamdem, Adrien Crivelli, Kevin Yang, Efriandika Pratama, philippe beroucry, Marco Schmidlin and 10 more
Was there a conclusion about the convention for global css?
I am also tending toward the concept of global scss folder at the root, that's imported as needed.
Let me know if it was resolved or still open - would love to develop the feature if it's not done yet.
Activity
RobCannon commentedon Jul 16, 2016
I would love to help with this. Is there more detail on these action items?
cortopy commentedon Jul 16, 2016
Me too. Right now, I have to mix&match angular-cli with my webpack config. I would like to help in order to get this feature released
filipesilva commentedon Jul 16, 2016
Hi @RobCannon and @cortopy, we already have some people assigned to these and are working on getting them done as fast as possible.
I don't think more help would be helpful right now though... too many cooks in the kitchen so to say, but thank you for offering!
yusijs commentedon Jul 16, 2016
Does this mean you're leaving SystemJS behind? And will you provide an upgrade route in that case through ng upgrade or similar? I've built a fairly large app with the cli now, and I'd rather not scrap it.. :3
filipesilva commentedon Jul 16, 2016
@yusijs there will be an upgrade route, yes. We will document it.
RobCannon commentedon Jul 17, 2016
Can you tell me to load a .scss file? I see there is sass support built in and I am able to get .scss files to process for individual components, but I can't figure out how to load a master style for the whole web app.
TheLarkInn commentedon Jul 17, 2016
3 off the list thanks to #1359
filipesilva commentedon Jul 17, 2016
@RobCannon there is no such functionality present in
angular-cli. You'll have to use standard scss functionality for that.hansl commentedon Jul 19, 2016
@filipesilva, @TheLarkInn: We're punting lazy loading until the webpack branch makes it to master. It's a difficult problem with many moving pieces and we will need a proper prototyping and design phase to solve it.
tapas4java commentedon Jul 20, 2016
Great work @filipesilva and @TheLarkInn. I can confirm SCSS is working out of the box with
--style scssflag.ng testandng build --prodbroken thoughfilipesilva commentedon Jul 20, 2016
@tapas4java broken? How? Tell me more. It's working in our tests. Did you run
ng initto update your files?tapas4java commentedon Jul 20, 2016
@filipesilva I have created new project and ran
ng testfilipesilva commentedon Jul 20, 2016
@tapas4java looks like missing dependencies. Did you
npm installon the webpack branch after checking it out? I know that these dependencies work, because our CI installs a project from scratch.tapas4java commentedon Jul 20, 2016
Thanks @filipesilva ....After
npm installtests are working fine. But still getting below message even though it is not blocking anything. Not sure what is thatundefinedin the path.ERROR in Entry module not found: Error: Can't resolve '/Users/tapas-pc/Documents/Work/digiadmin/undefined/test.ts' in '/Users/tapas-pc/Documents/Work/OpenSourceWork/Angular/angular-cli/addon/ng2/models'60 remaining items
ivoviz commentedon Jul 25, 2016
@filipesilva I'm pretty sure as well that TS2.0 has nothing to do with it. The main problem is the generated sourcemap files referencing to non-existent source files. Adding
srcfrom the angularfire2 repo manually, and changing thesourcesattribute in the.mapfiles makes the warnings go away. Should probably just ask @davideast to fix the publishing so it goes away (and the ngrx guys as well).mmrath commentedon Jul 25, 2016
@filipesilva A sample repo located at https://github.com/mmrath/ng-cli-webpack-test . Please let me know if you are able to reproduce the issue with repo.
hansl commentedon Jul 25, 2016
Periscope also uses Angularfire2, and does not compile.
Output: https://gist.github.com/hansl/7b53915bfaa55d72ebe842807b0351e4
filipesilva commentedon Jul 25, 2016
@Brocco I couldn't repro the
ng newissue, this was my result:We also test for git on our e2e test suite, which makes me think your scenario must have been a fluke (or something we're not testing for).
https://github.com/angular/angular-cli/blob/webpack/tests/e2e/e2e_workflow.spec.js#L82
Meligy commentedon Jul 26, 2016
Hello everyone,
I'm not sure whether this is the best place to report this. I have been playing with the webpack branch (and showing people how to do it, explaining it's not stable yet of course).
Someone asked me about using jQuery with that setup. I wouldn't recommend doing that in the first place, but my finding was interesting.
Since we don't use separate typings for
e2eandsrc, this meanssrcgets the global$declaration from protractor. This throws TS error because of the conflicting declarations.You can see a sample error here. I have also added to it some steps that can be used to separate the typings manually so that you don't get this error.
But, what I'm asking in this thread is:
Does it make sense to separate the typings for
srcande2e?(maybe via different tsconfig and types as mentioned in #1449?)
Thanks!
jvbianchi commentedon Jul 26, 2016
Hi.
The output-path option on the build command is not working.
command:
ng build --output-path build/TheLarkInn commentedon Jul 26, 2016
Just out of curiosity @jvbianchi can you try
./buildas the output path and tell me if that works?jvbianchi commentedon Jul 26, 2016
@TheLarkInn I tried
./buildand it doesn't work, same problem.hansl commentedon Jul 27, 2016
Thanks everyone. This issue is now closed as the WebPack branch is merged. If you have build issues, please create separate issues on github instead of refering to this.
A NPM package will be published sometime this week with this. It will use a separate
dist-tag, probably namedwebpack.I want to specially thank @TheLarkInn and @filipesilva for their work on this. Without you, it's clear we'd still be using Broccoli. Good work to both of you!
yusijs commentedon Jul 27, 2016
Can't wait for this to hit npm! Hoping the upgrade path is ready to by then! :)
itamark commentedon Aug 15, 2016
Was there a conclusion about the convention for global css?
I am also tending toward the concept of global scss folder at the root, that's imported as needed.
Let me know if it was resolved or still open - would love to develop the feature if it's not done yet.
filipesilva commentedon Aug 19, 2016
@itamark see #1633
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.