After running ng add @nguniversal/express-engine --clientProject [PROJECT_NAME]
my main.ts
is no longer valid due to import statements being moved within the callback.
#13042
Labels
area: schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
workaround1: obvious
Milestone
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Angular CLI: 7.0.6
Node: 10.13.0
OS: win32 x64
Angular: 7.0.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.10.6
@angular-devkit/build-angular 0.10.6
@angular-devkit/build-optimizer 0.10.6
@angular-devkit/build-webpack 0.10.6
@angular-devkit/core 7.0.6
@angular-devkit/schematics 7.0.6
@angular/cli 7.0.6
@angular/platform-server 7.1.0
@ngtools/webpack 7.0.6
@schematics/angular 7.0.6
@schematics/update 0.10.6
rxjs 6.3.3
typescript 3.1.6
webpack 4.19.1
Repro steps
Following the
Universal tutorial
on https://angular.io/guide/universal for my app, and it runsng add @nguniversal/express-engine --clientProject angular.io-example
, running the same for my angular 7 app results in the followingmain.ts
:However I'm getting ts errors due to ts not being happy with the
import
statements not being the first thing in the file.The text was updated successfully, but these errors were encountered: