Open arjenbrandenburgh opened 7 years ago
I ran into the same issue. Downgrading to v2.0.6 worked for me.
@ghost's suggestion to downgrade to v2.0.6 indeed seems to have solved my problem.
Thanks. Leaving the issue open, since it still seems it should be fixed at some point.
Do you have any estimation on when this is going to be fixed? Thanks in advance
Using Postscribe in combination with Angular2.
In my current project I'm looking to get a table from an external javascript file that contains a document.write. In the past we've done that in this fashion:
Angular2 removes script tags from templates, so that is not a solution. I've used postscribe and that worked when Angular2 was still in RCs. At some point I suddenly noticed it stopped working, and can't trace back what package broke it.
I now get this error:
The afterWrite callback still fires and the document.write in the external JS file has been written, but the done callback won't fire anymore. Since I'm working with an Angular2 SPA, the postscribe call won't happen again when opening a similar page, since it produced an error.
I've tried many things, but simply don't know what causes this. Was hoping anyone could help.
Plunkr: http://plnkr.co/edit/FHSVKDL2rv8TAQyTeqE2?p=preview You can see it's working, but in the console you see the same errors described above.