SoCreate / angular-playground

A drop in app module for working on Angular components in isolation (Angular version 2.x and above).
http://www.angularplayground.it
MIT License
458 stars 62 forks source link

Module not found, playground.module.d.ngfactory, with Angular 9 without Ivy #239

Closed jrdutton closed 4 years ago

jrdutton commented 4 years ago

Versions

angular-playground 6.2.0
Angular CLI: 9.0.2
Node: 12.13.1
OS: win32 x64

Angular: 9.0.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.900.2
@angular-devkit/build-angular      0.900.2
@angular-devkit/build-ng-packagr   0.900.2
@angular-devkit/build-optimizer    0.900.2
@angular-devkit/build-webpack      0.900.2
@angular-devkit/core               9.0.2
@angular-devkit/schematics         9.0.2
@angular/cli                       9.0.2
@ngtools/webpack                   9.0.2
@schematics/angular                9.0.2
@schematics/update                 0.900.2
ng-packagr                         9.0.1
rxjs                               6.5.4
typescript                         3.7.5
webpack                            4.41.2

Repro steps

I've updated an existing project from Angular 8 to Angular 9. I have switched Ivy off. Please find below my tsconfig.playground.json file.

{ "extends": "../tsconfig.json", "angularCompilerOptions": { "enableIvy": false }, "compilerOptions": { "outDir": "../out-tsc/app" }, "files": [ "src/main.ts", "src/main.playground-check-errors.ts", "src/main.playground.ts", "src/polyfills.ts" ], "include": [ "src/**/*.sandbox.ts", "src/**/*.d.ts" ], "exclude": [ "src/test.ts", "../src/test.ts" ] }

Observed Behavior

When I attempt to run playground, I'm seeing the error:

ERROR in ./src/main.playground.ts
Module not found: Error: Can't resolve './../../node_modules/angular-playground/dist/build/src/playground.module.d.ngfactory' in '...\demo\src'

Any other details that may be useful (optional)

Within the node_modules folder, I can see playground.module.ngfactory.d, not playground.module.d.ngfactory
jrdutton commented 4 years ago

Setting enableIvy to false and aot to false fixes this issue