You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hi,
I created a new angular package and after install dependencies yesterday, angular-compiler 4.4.4 and some another angular packages was installed and my compiled files are missing constructor parameters meta data. I tried to find where they are generated but I can't understand very well.
Someone can help me understand how reflected is generated? Who is responsible to generate them, ngc, typescript or another thing?
Thank you
Sander Elias
unread,
Oct 12, 2017, 6:33:35 AM10/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hi Herson,
This kind of error is often being caused by a mismatch of versions. did you try deleting your node_modules, and yarn lockfile, and npm install or yarn after that?
Regards Sander
Herson Leite
unread,
Oct 16, 2017, 4:26:39 PM10/16/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hi Sander,
Yes, but still same. I think is some change in some dependencies which I can't find. Seems tsc-wrapped in 4.4.4 version.
I rollback and works fine, but I want understand this behavior, who is responsible to generate the code and that meta data.
Thanks again.
Sander Elias
unread,
Oct 17, 2017, 3:01:32 AM10/17/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hi Herson,
Well, the code is generated by ngc, if you want to dig into this, you can start there. I remember there where some changes around here but those shouldn't be an issue outside internals. Don't remember the details, but you might have hit upon a possible issue. I really can't tell without seeing the source.
Regards
Sander
Herson Leite
unread,
Oct 18, 2017, 3:45:16 PM10/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hi Sander, I found the problem!
After some research, the problem is with Yarn < 1.2.1 which had a bug with peer dependencies. I tried use NPM and works fine, and I tried delete yarn.lock and tried again and nothing.
I found a Issue in Yarn project and one guy found the problem which I mentioned above ( https://github.com/yarnpkg/yarn/issues/4499 ). So they fixed the problem in Yarn in version 1.2.1 about 6 days ago. I tried and works fine.
Thanks for the help!
Sander Elias
unread,
Oct 18, 2017, 11:19:30 PM10/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hi Herson,
So my first assumption on mismatched versions was correct ;) I'm a long-time yarn user, and found it very useful, but sometimes it messes up (BTW, the same kind of issues now pop up with the new npm lockfile!)
However, I never got such an issue that survived a `rm -fr node_modules yarn.lock`. I got other issues that needed me to update yarn though,