Repository navigation
Closed
Milestone
Description
🐞 bug report
Affected Package
@angular@8.2.0-next.1
Is this a regression?
No
Description
The combination of Ivy + angular2-text-mask gives me:
- 1 warning at compilation time
- 1 error at run time
It prevents the application from running at all.
🔬 Minimal Reproduction
Just try to use Ivy + angular2-text-mask
🔥 Exception or Error
Compilation time warning:
WARNING in Entry point 'angular2-text-mask' contains deep imports into 'E:/Users/Juliano/Documents/Projetos/sa/sa-ui/saWorkspace/node_modules/text-mask-core/dist/textMaskCore'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
Runtime error:
ERROR Error: Uncaught (in promise): ReferenceError: Directive is not defined
ReferenceError: Directive is not defined
at angular2TextMask.js:115
at Object.../../../node_modules/angular2-text-mask/__ivy_ngcc__/dist/angular2TextMask.js (angular2TextMask.js:137)
at __webpack_require__ (bootstrap:84)
at Module.../../../libs/shared/ui/components/contato/src/lib/shared-ui-components-contato.module.ts (shared-ui-components-contato.module.ts:1)
at __webpack_require__ (bootstrap:84)
at Module.../../../libs/shared/ui/components/contato/src/index.ts (index.ts:1)
at __webpack_require__ (bootstrap:84)
at Module.../../../libs/issue-tracker/shared/ui/components/atualizacao-de-dados/src/lib/issue-tracker-shared-ui-components-atualizacao-de-dados.module.ts (issue-tracker-shared…e-dados.module.ts:1)
at __webpack_require__ (bootstrap:84)
at Module.../../../libs/issue-tracker/shared/ui/components/atualizacao-de-dados/src/index.ts (index.ts:1)
at resolvePromise (zone-evergreen.js:797)
at resolvePromise (zone-evergreen.js:754)
at zone-evergreen.js:858
at ZoneDelegate.invokeTask (zone-evergreen.js:391)
at Object.onInvokeTask (core.js:34921)
at ZoneDelegate.invokeTask (zone-evergreen.js:390)
at Zone.runTask (zone-evergreen.js:168)
at drainMicroTaskQueue (zone-evergreen.js:559)
The line referred in the error message is this one:
🌍 Your Environment
Angular Version:
Angular CLI: 8.2.0-next.0
Node: 12.3.1
OS: win32 x64
Angular: 8.2.0-next.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.802.0-next.0
@angular-devkit/build-ng-packagr 0.802.0-next.0
@angular-devkit/build-optimizer 0.802.0-next.0
@angular-devkit/build-webpack 0.802.0-next.0
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cdk 8.0.2
@angular/cli 8.2.0-next.0
@angular/material 8.0.2
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.2.0-next.0
@schematics/angular 8.0.1
@schematics/update 0.802.0-next.0
ng-packagr 5.3.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.3
Anything else relevant?
No
Metadata
Metadata
Assignees
Labels
No labels

Activity
[-]Ivy + angular2-text-mask: run time error[/-][+]Ivy + angular2-text-mask: runtime error[/+]alexzuza commentedon Jul 11, 2019
Appears related to #31394
julianobrasil commentedon Jul 11, 2019
@alexzuza, yeah... it seems the same (at least the error message points to something "not defined"). Do you think I should close this one and comment over there?
JoostK commentedon Aug 24, 2019
Closing, as this error has been fixed in #31614. If you experience other issues, please open a new issue.
angular-automatic-lock-bot commentedon Sep 24, 2019
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.