Code Monkey home page Code Monkey logo

Comments (5)

alexeagle avatar alexeagle commented on May 6, 2024

That typically just means that Angular's compiler has a limitation on the typescript programs it can statically analyze, not necessarily related to Bazel. Do you have a small reproduction?

from angular-bazel-example.

jmclen avatar jmclen commented on May 6, 2024

Thank you. In this case, I'm attempting to use an ngx-bootstrap modal. Perhaps I'm missing something on installing 3rd party libraries when using Bazel.

from angular-bazel-example.

alexeagle avatar alexeagle commented on May 6, 2024

ah, see the angular.tsconfig.json and the ngc call in the postinstall. Angular libraries don't ship with AOT code-generation, but Bazel expects that its inputs were compiled separately. So you need to run ngc on other third-party libs like we do for Angular, in the postinstall.

Leaving this open to track adding the documentation.

from angular-bazel-example.

jmclen avatar jmclen commented on May 6, 2024

I thought that was probably the case. I had attempted to do just that, but I must be missing something. I'm new to typescript and brand new to bazel, so there's a lot I'm trying to get my head wrapped around. Thank you again!

from angular-bazel-example.

alexeagle avatar alexeagle commented on May 6, 2024

Sure, good luck - it's early to adopt Bazel still, so you might want to make small repros of your issues using the more commonly used toolchain to see what's specific to Bazel and what's generally true of the Angular compiler.

from angular-bazel-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.