You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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)
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.
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.
Command
update
Is this a regression?
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
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: