Skip to content
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

You seem to not be depending on @angular/core" when using Bun with Angular #14259

Open
mdex-geek opened this issue Sep 30, 2024 · 2 comments
Open
Labels
bug Something isn't working node:module

Comments

@mdex-geek
Copy link

What version of Bun is running?

1.1.27

What platform is your computer?

Window 11

What steps can reproduce the bug?

Issue: I am encountering the following error when trying to use Angular with Bun:Error: You seem to not be depending on @angular/core.
Steps to Reproduce:
Initialize a new Angular project.
Install dependencies using Bun:bun add @angular/core @angular/cliAttempt to run the Angular application using Bun.
Expected Behavior: The Angular project should run without any errors related to dependencies.
Actual Behavior: The error suggests that @angular/core is missing, despite being added as a dependency in package.json.
I first ask in angular this is reply angular/angular-cli#28530

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@mdex-geek mdex-geek added bug Something isn't working needs triage labels Sep 30, 2024
@lalo-mx
Copy link

lalo-mx commented Oct 1, 2024

The error happens with createRequire API from node:module

It used in Angular CLI
image

https://github.com/angular/angular-cli/blob/728d7b0bcc9c8154c6b77b5b314d7b12246943a3/packages/angular/build/src/utils/version.ts#L27

@mdex-geek
Copy link
Author

Then what should I do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node:module
Projects
None yet
Development

No branches or pull requests

3 participants