-
Notifications
You must be signed in to change notification settings - Fork 12k
AOT build doesn't work when I compile a module outside of my project #5998
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
Comments
are you getting the You have to be inside an Angular CLI project in order to use the build command. |
Yes,
... |
@wKoza ok I see what happened. When you generate a component with specifically the import here should be
|
@cenkentimist, NgbdAccordion is imported by NgbdDemoModule. Without --aot , the project builds without any problems, |
@wKoza Actually did try this. It didn't work at all for me(don't remember the exact errors). I don't have a global install of angular and that wasn't the error I got when I installed it in and ran it. The project is also missing the scripts generated by the default angular project. IE |
The project is in the |
Same issue as #5986 ? |
Yes , it's possible @kylecordes . |
I think this may be the same issue I reported here #5990. |
@wKoza works fine for ngx-bootstrap, but I am linking lib src into node_modules |
yes @valorkin , with this strategy, it's work but it's not what I want. |
@wKoza can you still reproduce this issue? |
Hi @mgechev, I don't think so. Angular CLI have grown since ;) We can close it. |
Thanks for the response! |
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. |
Hi, I'm trying to migrate the ng-bootstrap test application to Angular CLI. Unfortunately, the AOT compilation does not work with
ng build --aot
. Here is my project : https://github.com/wKoza/ng-bootstrap/tree/migration_to_angular_cli/demoHowever, when I run the command :
./node_modules/.bin/ngc -p src/tsconfig.app.json
, I can compile my code.Is it possible to do this with the CLI ?
The text was updated successfully, but these errors were encountered: