question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AOT builds are failiing because of the ngx-chips dependency... I believe the culprit is the version of angular-cli you are using.

See original GitHub issue

PLEASE MAKE SURE THAT:

  • you searched similar issues online (9/10 issues in this repo are solved by googling, so please…do it)
  • you provide an online demo I can see without having to replicate your environment
  • you help me by debugging your issue, and if you can’t, do go on filling out this form

I’m submitting a … (check one with “x”)

[ x] bug report => search github for a similar issue or PR before submitting
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior

In my case the bug is manifesting because Angular AOT is run via ngtools/webpack which is the sister of angular-cli which you are using. So this is what is happening… Because this dependency is trying to run its build and AOT upon installing the package i.e. into the dist folder <<< it is running against my webpack config’s ngtoosl/webpack installation housing its AOT parameters. thus causing the AOT build to fail

Below I state recreation steps but the issue is definatelty stemming from how you’re building the package upon installation which is using AOT parameters from anguar cli.

My first thought is… why place this step on the user installing a package… I get if someone wanted to customize the css or files but having this step run alongside of another person’s AOT installation and params should / could be thought out better so that this won’t occur.

I stated in another thread here for this package is that AOT ngtools / angular-cli was having issues with one of their dependencies… it was auto incremented through ^ and broke a lot of peoples AOT builds. something with enhanced-resolver… What’s insane is that they did a fixed version and have since then reverted back to allowing ^ increments for minor updates.

I would like to work through this with you as my build depends on it.

Expected behavior

Minimal reproduction of the problem with instructions (if applicable)

Download an Angular quick repo and use ngtools/webpack inside of it… then install your package and you will see the error.

What do you use to build your app?. Please specify the version

Angular version:

ngx-chips version:

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kotmatpockuhcommented, Jan 15, 2018

still appears…

1reaction
Gbuompriscocommented, Jan 12, 2018

Check out the very latest, this has been fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

aot fails but ng build works fine with installed library
When installed from npm into either clean angular-cli or nx project, the ng build command works fine but the ng build --aot fails...
Read more >
angular/angular - Gitter
I am using ngTools/webpack for the AoT and lazy loaded module using route/loadChildren. Everyting seems to work but I can not navigate to...
Read more >
CodaLab Worksheets
<unk> <s> </s> * - Main goods are marked with red color . ... interface convenient search options They built updated linguistic databases...
Read more >
https://huggingface.co/jeniya/BERTOverflow/commit/...
+a +e +t +~ +゚ + +##e +##t +##S +##u +##b +##l +##a +##y +##r +##T +##n ... +ac +controller +appear +xml +arg...
Read more >
Medical abstract word cluster viewer - Our faculties
These results were produced from a run with 3000 clusters. Cluster path (and word type count), Words (most frequent). ^00000000 (53) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found