Skip to content

Get error after update angular/cli version #8992

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
dxvladislavvolkov opened this issue Dec 25, 2017 · 10 comments
Closed

Get error after update angular/cli version #8992

dxvladislavvolkov opened this issue Dec 25, 2017 · 10 comments
Assignees
Labels
P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful type: bug/fix

Comments

@dxvladislavvolkov
Copy link

angular/cli: 1.5.0 - 1.6.0
angulat/core: 5.0.0

Repro steps

  1. Clone app
  2. npm i
  3. ng build --prod
  4. cd dist
  5. run server

Observed behavior

After update angular and angular/cli versions I get error "TypeError: Cannot read property 'pointers' of undefined".

Desired behavior

If I use the 1.4.* version with angular 4, everything works fine

@filipesilva
Copy link
Contributor

filipesilva commented Dec 26, 2017

Using your repro, I had to first remove implements AfterViewInit from src/app.component.ts because it was not implemented correctly.

Then while running npm run ng -- serve --prod --sm I was able to see this error:

mouse.js:24 Uncaught TypeError: Cannot set property 'pointerId' of undefined

Then I updated versions to latest ones ("@angular/cli": "1.6.2", "devextreme": "17.2.4" and "devextreme-angular": "17.2.4") and the error went away. I'm not sure where the problem was but latest versions seems to have fixed it.

@dxvladislavvolkov
Copy link
Author

@filipesilva it is not working on my side( Can you re-open the issue?

@filipesilva filipesilva reopened this Dec 26, 2017
@filipesilva
Copy link
Contributor

filipesilva commented Dec 26, 2017

Thanks for getting back to me, I'm reopening. I tried to reproduce with a newer version of uglify-es because it seems it's causing problems in #8997. I now see Uncaught TypeError: Cannot set property 'pointerId' of undefined even with updated versions of other packages.

Can you please tell me what do you see on your machine when you run npm ls uglify-es?

@filipesilva filipesilva self-assigned this Dec 26, 2017
@filipesilva filipesilva added type: bug/fix P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful labels Dec 26, 2017
@filipesilva
Copy link
Contributor

For now you can run this command to use an older version of uglify-es where the error does not occur:

npm i uglify-es@3.2.2 --save-exact && rm -rf package-lock.json node_modules && npm i && npm ls uglify-es

@dxvladislavvolkov
Copy link
Author

The result of the command execution:
-- @angular/cli@1.6.2
-- uglifyjs-webpack-plugin@1.1.4
-- uglify-es@3.3.2

Thanks for the workaround!

@filipesilva
Copy link
Contributor

Have been debugging this for a couple of hours and the best I can say is that the class inheritance mechanism that devextreme uses breaks down when passed through uglify-es@3.3.2.

@filipesilva
Copy link
Contributor

mishoo/UglifyJS#2663 might be related, I noticed some of that function inlining in the code I was investigating.

@filipesilva
Copy link
Contributor

The bug causing these problems is reported with repros at mishoo/UglifyJS#2663.

@filipesilva
Copy link
Contributor

I'm going to close this issue in favor of #8997 since the problem is the same.

@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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful type: bug/fix
Projects
None yet
Development

No branches or pull requests

2 participants