Git Product home page Git Product logo

Comments (7)

leosvelperez avatar leosvelperez commented on June 3, 2024 1

@AronHoxha there's a legit issue for which I created a PR, but note that Angular versions lower than 15 are not supported. From the failure logs you shared, you seem to be using Angular 13.3.11, which is not a supported version.

from nx.

dlq84 avatar dlq84 commented on June 3, 2024

esbuild was introduced in angular 16 and the flag you're trying to use in 16.1, there's nothing NX can do about that. Upgrade your angular version.

You should always upgrade nx with nx migrate <version>, this will upgrade and migrate angular with it. https://nx.dev/features/automate-updating-dependencies

Here's the version matrix: https://nx.dev/nx-api/angular/documents/angular-nx-version-matrix

from nx.

AronHoxha avatar AronHoxha commented on June 3, 2024

esbuild was introduced in angular 16 and the flag you're trying to use in 16.1, there's nothing NX can do about that. Upgrade your angular version.

As it is in our project we can't migrate the angular version as of right now.

We don't want to use esBuild for our dev-server, but it's impossible to use the dev-server even with foreceEsbuild: false since it still fails.

Can't the default value of forceEsbuild be undefined, so that nx is compatible angular versions <16?

Thank you for sharing the compatibility matrix!

from nx.

dlq84 avatar dlq84 commented on June 3, 2024

esbuild was introduced in angular 16 and the flag you're trying to use in 16.1, there's nothing NX can do about that. Upgrade your angular version.

As it is in our project we can't migrate the angular version as of right now.

We don't want to use esBuild for our dev-server, but it's impossible to use the dev-server even with foreceEsbuild: false since it still fails.

Can't the default value of forceEsbuild be undefined, so that nx is compatible angular versions <16?

Thank you for sharing the compatibility matrix!

What happens if you do not specify forceEsbuild in your conf at all?

from nx.

AronHoxha avatar AronHoxha commented on June 3, 2024

What happens if you do not specify forceEsbuild in your conf at all?

The same error

from nx.

AronHoxha avatar AronHoxha commented on June 3, 2024

What happens if you do not specify forceEsbuild in your conf at all?

Note: manually remove the following line from node_modules, successfully serves the app. Not sure if it breaks using NX with higher versions of angular

from nx.

github-actions avatar github-actions commented on June 3, 2024

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

from nx.

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.