This topic contains 5 replies, has 3 voices, and was last updated by 1 year, 8 months ago.
September 5, 2018 at 11:07 am #597778
Hi, I’ve been using Angular IDE directly, not as an add on to Eclipse. Java version is Java 8, update 181 (final update)
I had to put the project I was working on down for about a month. Upon loading it up again and right clicking a folder to create the a new component, I received this error:
“Error: Cannot read property ‘0’ of null
Cannot read property ‘0’ of null
(See AngularIDEError attachment for screenshot.)
I decided to update my angular/cli globablly, and updated my package.json packages as well, but to no avail. I’ve attached my current package.json as well.
Finally, I checked to see if there were any Angular IDE updates, and it stated there were none.
Please let me know if there is any other information I need to provide to help solve the problem.
Attachments:You must be logged in to view attached files.September 6, 2018 at 5:58 am #597839
Sorry that you are seeing this issue. I have trouble getting the dependencies to work as per your package.json in my local project.
Can you please delete the node_modules folder, then run ‘npm install’ for the project from the Terminal+ view and see if it fixes the issue?
Couple of users have already reported similar problem with creating components. Please refer to these links:
I suggest you also cross post to development related forums like stackoverflow.com or open an issue in the Github’s Angular section.
If you want us to take a look, then please share the zipped project with us to help us investigate further. Please omit the node_modules folder and send us the exported zipped project.
Genuitec SupportSeptember 7, 2018 at 10:59 am #597908
I have tried your suggestions, and even went as far as doing a complete reinstall of angular-ide. I can add a component to a fresh project, but when I delete the old src folder and replace the package.json, I receive the error again.
I have an updated package.json I’ve attached. I would also like to give you the zipped project, but I would not like to attach that to a public forum. Do you have a support email address?
Attachments:You must be logged in to view attached files.September 7, 2018 at 11:21 am #597912
but when I delete the old src folder and replace the package.json, I receive the error again.
Am I right in assuming you run an
npm installafter this?
You can email the project to firstname.lastname@example.org – would definitely make it much easier for us to track this down.September 7, 2018 at 11:30 am #597915
Ha ha! Yes, I run npm install after. =)
The reinstalled project is working fully. The only issue is the Error message and failure to create a new component on the working project.
Thank you for the email address, I did not see it in your “support” or “contact” section. I’ve emailed the support team with the zipped project. If they resolve the issue, I will return to write what the problem was in case someone else has this issue in the future.September 10, 2018 at 10:26 am #598000
Thank you for the project files.
I see that you have already fixed the issue as per your report here : https://github.com/angular/angular-cli/issues/5595
Since you are good to go, we are closing this post here. Please let us know if you see any further problems.