Skip to content

TypeError : meta is undefined, @angular-devkit/build-angular: 0.800.3 => 0.800.4 #14910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cedx opened this issue Jun 26, 2019 · 3 comments
Closed

Comments

@cedx
Copy link

cedx commented Jun 26, 2019

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [x] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes, the previous version in which this bug was not present was:
@angular-devkit/build-angular: 0.800.3

Description

This project : https://github.com/cedx/ngx-core.js
has tests that worked fine until I upgraded @angular-devkit/build-angular to version 0.800.4 (i.e. if I revert this package, and only this package, to version 0.800.3, everything is OK).

🔬 Minimal Reproduction

I have absolutely no idea how to reproduce this bug. The stack trace is unreadable for me, so I don't know where and how to start investigations.

🔥 Exception or Error


TypeError: meta is undefined in http://localhost:9876/_karma_webpack_/vendor.js (line 38610)
	error properties: Object({ ngDebugContext: DebugContext_({ view: Object({ def: Object({ factory: Function, nodeFlags: 33603585, rootNodeFlags: 33554433, nodeMatchedQueries: 0, flags: 0, nodes: [ Object({ nodeIndex: 0, parent: null, renderParent: null, bindingIndex: 0, outputIndex: 0, checkIndex: 0, flags: 33554433, childFlags: 49152, directChildFlags: 49152, childMatchedQueries: 0, matchedQueries: Object({  }), matchedQueryIds: 0, references: Object({  }), ngContentIndex: null, childCount: 1, bindings: [  ], bindingFlags: 0, outputs: [  ], element: Object({ ns: '', name: 'test-component', attrs: [  ], template: null, componentProvider: Object({ nodeIndex: 1, parent: , renderParent: , bindingIndex: 0, outputIndex: 0, checkIndex: 1, flags: 49152, childFlags: 0, directChildFlags: 0, childMatchedQueries: 0, matchedQueries: Object, matchedQueryIds: 0, references: Object, ngContentIndex: -1, childCount: 0, bindings: Array, bindingFlags: 0, outputs: Array ...
	injectArgs@http://localhost:9876/_karma_webpack_/vendor.js:38610:21
	convertInjectableProviderToFactory/<@http://localhost:9876/_karma_webpack_/vendor.js:39201:27
	_callFactory@http://localhost:9876/_karma_webpack_/vendor.js:61211:20
	_createProviderInstance@http://localhost:9876/_karma_webpack_/vendor.js:61154:26
	resolveNgModuleDep@http://localhost:9876/_karma_webpack_/vendor.js:61113:17
	get@http://localhost:9876/_karma_webpack_/vendor.js:62206:16
	resolveDep@http://localhost:9876/_karma_webpack_/vendor.js:62736:45
	createClass@http://localhost:9876/_karma_webpack_/vendor.js:62580:29
	createDirectiveInstance@http://localhost:9876/_karma_webpack_/vendor.js:62400:22
	createViewNodes@http://localhost:9876/_karma_webpack_/vendor.js:73006:38
	createRootView@http://localhost:9876/_karma_webpack_/vendor.js:72878:5
	callWithDebugContext@http://localhost:9876/_karma_webpack_/vendor.js:74407:27
	debugCreateRootView@http://localhost:9876/_karma_webpack_/vendor.js:73644:12
	create@http://localhost:9876/_karma_webpack_/vendor.js:61542:31
	initComponent@http://localhost:9876/_karma_webpack_/vendor.js:78325:51
	./node_modules/zone.js/dist/zone.js/
	runInTestZone/

🌍 Your Environment


Angular CLI: 8.0.4
Node: 12.4.0
OS: linux x64
Angular: 8.0.2
... common, compiler, compiler-cli, core, language-service
... platform-browser, platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.800.4
@angular-devkit/build-angular      0.800.4
@angular-devkit/build-ng-packagr   0.800.4
@angular-devkit/build-optimizer    0.800.4
@angular-devkit/build-webpack      0.800.4
@angular-devkit/core               8.0.4
@angular-devkit/schematics         8.0.4
@angular/cli                       8.0.4
@ngtools/json-schema               1.1.0
@ngtools/webpack                   8.0.4
@schematics/angular                8.0.4
@schematics/update                 0.800.4
ng-packagr                         5.3.0
rxjs                               6.5.2
typescript                         3.4.5
webpack                            4.30.0

Anything else relevant?

Using Chrome instead of Firefox does not change anything: the error is still raised.

The tests (https://github.com/cedx/ngx-core.js/blob/master/test/directives/document_title_test.ts) involve a directive (https://github.com/cedx/ngx-core.js/blob/master/src/directives/document_title.ts#L27) that depends on a service (https://github.com/cedx/ngx-core.js/blob/master/src/services/application.ts#L64) that uses the Meta service.

I rely on the error message: meta is undefined. But again, I have absolutely no idea of the origin of the error.

EDIT : https://travis-ci.com/cedx/ngx-core.js/builds/116878254, if it helps.

@alan-agius4
Copy link
Collaborator

Possibly related to #14888

@cedx
Copy link
Author

cedx commented Jul 3, 2019

After upgrading to Angular v8.1.0 and @angular-devkit/build-angular v0.801.0, the error is gone 😄
I think we can say that the issue has been fixed.

@cedx cedx closed this as completed Jul 3, 2019
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants