Closed Farzannajipour closed 4 years ago
Hi, have you also tried v2.1.0?
I am also having the same issue on V2.1.0
ERROR in ./node_modules/ng2-material-dropdown/fesm5/ng2-material-dropdown.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'kind' of undefined
at isAngularDecoratorMetadataExpression (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:265:35)
at checkNodeForDecorators (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:77:21)
at visitNodes (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16514:30)
at Object.forEachChild (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16740:24)
at checkNodeForDecorators (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16505:24)
at Object.forEachChild (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16635:21)
at checkNodeForDecorators (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16505:24)
at Object.forEachChild (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16692:24)
at checkNodeForDecorators (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16505:24)
at Object.forEachChild (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16703:24)
at checkNodeForDecorators (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16505:24)
at Object.forEachChild (C:\_git\OmbiV4\Ombi\src\Ombi\ClientApp\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16599:21)
There is a bit of information here: https://github.com/NileshPatel17/ng-multiselect-dropdown/issues/178
Hi, have you also tried v2.1.0?
Yes, I've tried v2.1.0 but it does not change anything
I have the same issue. @tidusjar While it is the exact same error message i get, I don't understand what the connection is from this library, to the ng-multiselect-dropdown repo? This repo seems to depend on ng2-material-dropdown and not the above?
Is there any solution yet for this? Specifically the ng2-material-dropdown
dependency issue; I'm unable to build production bundle, and removing the package is not really an option at this point
Hi, I'm gonna take a look during the weekend, hope to fix it
Same issue here
Hi, I'm gonna take a look during the weekend, hope to fix it
Thank you Giancarlo
Hi, I'm gonna take a look during the weekend, hope to fix it
Thank you so much, waiting for it :)
I am also facing the same issue, any luck ? ERROR in ./node_modules/ng2-material-dropdown/fesm2015/ng2-material-dropdown.js
I am also facing the same issue, any luck ? ERROR in ./node_modules/ng2-material-dropdown/fesm2015/ng2-material-dropdown.js
According to @Gbuomprisco, he'll take a look at it on the weekend, so let's wait for now; I recommend also checking the issue on the ng2-material-dropdown
repo to see if we get any other update on the matter, since the issue itself seems to be on that package instead of ngx-chips
per se.
Issue on Ng2-Material-Dropdown repo.
Hi everyone, I had a look at the issue as promised: my build can't reproduce the issue you all have; also had a look at the other package's issue.
My gut feeling is that it may be due to a package version (angular-devkit/build-angular):
Can you try to use the same versions as above? Or share which exact versions you're using?
I had the same issue with my library. Seems like updating the @angular/cli solves the problem. I found more related issues: @angular/cli ngx-quill but haven't found a way to create a package that both works on previous and latest @angular/cli version
Hi everyone, I had a look at the issue as promised: my build can't reproduce the issue you all have; also had a look at the other package's issue.
My gut feeling is that it may be due to a package version (angular-devkit/build-angular):
- this is the version I use to build on v9: "@angular-devkit/build-angular": "^0.803.19"
- this is the version I use to build on v8": "@angular-devkit/build-angular": "^0.803.8"
Can you try to use the same versions as above? Or share which exact versions you're using?
Changing the version to the one you used for v8 work for me. Thank you
Nice, if someone else can confirm, I'll close the issue
Nice, if someone else can confirm, I'll close the issue
Confirming changing "@angular-devkit/build-angular": "~0.800.0"
to ~0.803.8
solved the issue :)
Thank you a lot!
I had same problem. I set "buildOptimizer": false
in angular.json
for production , and is ok.
thx for https://github.com/ckeditor/ckeditor4-angular/issues/78
That's not really a solution, buildOptimzer is an important setting. If you set the correct versions the problem should be solved
Hi everyone, I had a look at the issue as promised: my build can't reproduce the issue you all have; also had a look at the other package's issue.
My gut feeling is that it may be due to a package version (angular-devkit/build-angular):
- this is the version I use to build on v9: "@angular-devkit/build-angular": "^0.803.19"
- this is the version I use to build on v8": "@angular-devkit/build-angular": "^0.803.8"
Can you try to use the same versions as above? Or share which exact versions you're using?
@Gbuomprisco is this supposed to support angularv6 ?
Yes AFAIK it shouldn't have issues as long as the dependencies are correct
PLEASE MAKE SURE THAT:
I'm submitting a ... (check one with "x")
Current behavior
I want to build with this command:
ng build --aot=true --prod --build-optimizer --configuration=dev --outputHashing=all
But I got this error:
ERROR in ./node_modules/ng2-material-dropdown/fesm5/ng2-material-dropdown.js
TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression
Expected behavior
Run like dev & staging mode
Minimal reproduction of the problem with instructions (if applicable)
Download Angular 8, install ngx chips
What do you use to build your app?. Please specify the version
Angular-CLI
Angular version:
8.2.0.
ngx-chips version:
2.0.2
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]