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, the previous version in which the bug was not present with Angular CLI 8.2.2
Description & Minimal Reproduction
External schematics executed with
ng g @myorg/some.package
does not work in Angular 9 anymore.
The problem seem to be the module resolution with packages that have a dot in it.
Renaming the package without a dot to @myorg/some-package fixes the issue and the CLI executes correctly the schematic. But it would be nice if the module resolution will be working again with dots.
🔥 Exception or Error
[error] Error: Cannot find module '@myorg/some.package'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.resolve (internal/modules/cjs/helpers.js:33:19)
at NodeModulesEngineHost._resolveCollectionPath (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:36:38)
at NodeModulesEngineHost.createCollectionDescription (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:109:27)
at SchematicEngine._createCollectionDescription (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/src/engine/engine.js:147:40)
at SchematicEngine.createCollection (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/src/engine/engine.js:140:43)
at GenerateCommand.getCollection (/Users/zartin/ws/ang9/node_modules/@angular/cli/models/schematic-command.js:127:35)
at GenerateCommand.initialize (/Users/zartin/ws/ang9/node_modules/@angular/cli/models/schematic-command.js:43:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
I found out that this also fixes this "." issue.
Is there any information when this will be released? Is there a chance for a fix release for 9 or are we more looking at v10?
Thank You
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which the bug was not present with Angular CLI 8.2.2
Description & Minimal Reproduction
External schematics executed with
ng g @myorg/some.package
does not work in Angular 9 anymore.
The problem seem to be the module resolution with packages that have a dot in it.
Renaming the package without a dot to @myorg/some-package fixes the issue and the CLI executes correctly the schematic. But it would be nice if the module resolution will be working again with dots.
🔥 Exception or Error
[error] Error: Cannot find module '@myorg/some.package'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.resolve (internal/modules/cjs/helpers.js:33:19)
at NodeModulesEngineHost._resolveCollectionPath (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:36:38)
at NodeModulesEngineHost.createCollectionDescription (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:109:27)
at SchematicEngine._createCollectionDescription (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/src/engine/engine.js:147:40)
at SchematicEngine.createCollection (/Users/zartin/ws/ang9/node_modules/@angular-devkit/schematics/src/engine/engine.js:140:43)
at GenerateCommand.getCollection (/Users/zartin/ws/ang9/node_modules/@angular/cli/models/schematic-command.js:127:35)
at GenerateCommand.initialize (/Users/zartin/ws/ang9/node_modules/@angular/cli/models/schematic-command.js:43:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
🌍 Your Environment
Angular CLI: 9.1.0
Node: 10.18.1
OS: darwin x64
Angular: 9.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
@angular-devkit/architect 0.901.0
@angular-devkit/build-angular 0.901.0
@angular-devkit/build-optimizer 0.901.0
@angular-devkit/build-webpack 0.901.0
@angular-devkit/core 9.1.0
@angular-devkit/schematics 9.1.0
@angular/cdk 9.2.0
@angular/material 9.2.0
@ngtools/webpack 9.1.0
@schematics/angular 9.1.0
@schematics/update 0.901.0
rxjs 6.5.5
typescript 3.8.3
webpack 4.42.0
The text was updated successfully, but these errors were encountered: