Skip to content

migration use-application-builder do not find src/main.ts #28151

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

Closed
1 task
FGiesche opened this issue Aug 2, 2024 · 3 comments
Closed
1 task

migration use-application-builder do not find src/main.ts #28151

FGiesche opened this issue Aug 2, 2024 · 3 comments
Labels
needs: repro steps We cannot reproduce the issue with the information given

Comments

@FGiesche
Copy link

FGiesche commented Aug 2, 2024

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Can not run migration use-application-builder, file src/main.ts exists

Minimal Reproduction

upgraded from angular 17.3.10 to 18.1.3, run ng update @angular/cli --name use-application-builder afterwards

Capture

Exception or Error

[error] Error: Path "src/main.ts" does not exist.
    at HostTree.readText (D:\git\fagi\AngularPortalTemplate\at.AngularPortalTemplate\ClientApp\node_modules\@angular-devkit\schematics\src\tree\host-tree.js:220:19)
    at getSourceFile (D:\git\fagi\AngularPortalTemplate\at.AngularPortalTemplate\ClientApp\node_modules\@schematics\angular\utility\standalone\util.js:55:26)
    at findBootstrapApplicationCall (D:\git\fagi\AngularPortalTemplate\at.AngularPortalTemplate\ClientApp\node_modules\@schematics\angular\utility\standalone\util.js:61:24)
    at isStandaloneApp (D:\git\fagi\AngularPortalTemplate\at.AngularPortalTemplate\ClientApp\node_modules\@schematics\angular\utility\ng-ast-utils.js:98:49)
    at D:\git\fagi\AngularPortalTemplate\at.AngularPortalTemplate\ClientApp\node_modules\@schematics\angular\ssr\index.js:281:65
    at async callRuleAsync (D:\git\fagi\AngularPortalTemplate\at.AngularPortalTemplate\ClientApp\node_modules\@angular-devkit\schematics\src\rules\call.js:77:18)

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 18.1.3
Node: 22.2.0
Package Manager: npm 10.7.0
OS: win32 x64

Angular: 18.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1801.3
@angular-devkit/build-angular   18.1.3
@angular-devkit/core            18.1.3
@angular-devkit/schematics      18.1.3
@schematics/angular             18.1.3
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.8

Anything else relevant?

No response

@alan-agius4
Copy link
Collaborator

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?

You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

@alan-agius4 alan-agius4 added the needs: repro steps We cannot reproduce the issue with the information given label Aug 5, 2024
@alan-agius4
Copy link
Collaborator

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.

If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: repro steps We cannot reproduce the issue with the information given
Projects
None yet
Development

No branches or pull requests

2 participants