-
-
Notifications
You must be signed in to change notification settings - Fork 40
Cannot read property 'text' of undefined #109
Comments
Hey @lukashlobil, Can you post your |
Hello @sis0k0 thank you, package is posted in this gist: https://gist.github.com/lukashlobil/e7e81852cdc9e746fa7e79ac03cc6545 |
Hi @lukashlobil, I've been trying to reproduce this in a simple app, but I couldn't get the same error. Can you send a really simple sample project with the error, so I can debug it. Thank you in advance! |
@sis0k0, I've prepared a reproduce of this error using symlink and sample-Groceries project: https://github.com/DanielKucal/sample-Groceries/tree/cannot-read-text-of-undefined-repro |
@DanielKucal I have used a symlink as well (like angular-advanced-seed). Had to get rid of it and now I don't get this error as well. This service myClass was symlinked. Well, I guess, don't use symlinks. |
Hi @lukashlobil, I really need symlinks as AoT compilation hasn't been used for my Angular project so its code is incompatible. That's why I've developed a simple tool for replacing symlinks by real files to make a build and revert them afterwards. If you think you will need them anyway, then take a look at symlink-resolver. Good luck |
I moved the symlinked files to its own repo, but thank you, this will come in handy |
I am not really sure, where the problem is, I am getting:
Cannot read property 'text' of undefined .
I am posting this issue here, because it seems related to this, which is angular cli's implementation of webpack.
myClass is a simple angular service
'text' property is not mentioned anywhere in the class.
My app.module:
injecting the service somewhere in the app:
injector.get(API_LINK);
Looking for any kind of help / pointers. thanks
The text was updated successfully, but these errors were encountered: