Code Monkey home page Code Monkey logo

Comments (6)

JoostK avatar JoostK commented on April 27, 2024 2

This typically happens when there's multiple copies of @angular/core present, as tracked in #35586. I don't have sufficient insight into your situation to judge whether this is the case here as well, so please provide a runnable reproduction.

from angular.

maequise avatar maequise commented on April 27, 2024

I agree with @JoostK, I had a similar issue when I was testing and linking the framework repo with the local repo during my tests.

from angular.

dansoper avatar dansoper commented on April 27, 2024

Thanks for the replies. I have worked out what is causing it in my environment, but not sure if there's a resolution.

I have a persisted SUBST 'drive' in my machine (https://en.wikipedia.org/wiki/SUBST#Registry_(DOS_Devices))

This means that files at C:\Users\Me\Documents\Source are also at S:\

When I run the Angular app by ng serve from the S: drive, it fails. When I run it from the C: drive, it succeeds. So it's something to do with this symbolic link. It only affects ng serve - not ng build. It hasn't previously been a problem (in other versions of Angular), but I guess there's something new in the build/serve code?

I have a workaround, but it would be good to know of a proper solution.

I guess it might be related to this: vitejs/vite#10802

from angular.

JoostK avatar JoostK commented on April 27, 2024

I am not familiar with drive-mapped directories, but if they behave like symlinks then the preserveSymlinks option may affect how this works.

from angular.

dansoper avatar dansoper commented on April 27, 2024

Yes, thank you, setting preserveSymlinks to true in my angular.json (at projects.my-project.architect.build.options.preserveSymlinks) seems to have solved it.

from angular.

angular-automatic-lock-bot avatar angular-automatic-lock-bot commented on April 27, 2024

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.

from angular.

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.