-
Notifications
You must be signed in to change notification settings - Fork 483
domino uninstalled upgrading to ng 9 #1499
Comments
I am also seeing a similar issue with upgrading to ng 9 and using universal - specifically with the prerender. Previously was able to use domino in server.ts but that seems to not work anymore. I did also try to add the old domino code into master.ts but got a slew of problems with that approach. What is weird is that the only reference to document I have now is related to node modules and it seems to be pointing to bluebird (which is packaged by Karma and webpack). |
Can you please share a reproduction? Thanks. |
@alan-agius4 I actually ran the steps from Angular documentation and even with One thing I noticed when building was the following output:
I wonder since those imports do have Basically, if domino can be used, I think this solves this issue. The problem is it will not import into main.ts because it fails on node modules (path, fs, etc). |
This is not an issue with Angular Universal, but maybe related to #1675. Either way, closing. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
What modules are related to this issue?
Is this a regression?
Yes, the previous version in which this bug was not present was: 8.x
Description
domino was uninstalled while upgrading to Angular 9 in a Universal project, and I'm no longer able to build, due to the following error: "ReferenceError: document is not defined". Re-adding domino via npm install did not resolve this error, either. Requiring and referencing domino in either server.ts or main.ts also fails.
🔬 Minimal Reproduction
Just adding
document.addEventListener(...)
in main.ts produces the described error.🔥 Exception or Error
"ReferenceError: document is not defined"
🌍 Your Environment
The text was updated successfully, but these errors were encountered: