Error: Can't resolve all parameters for setupPlatform: (?, [object Object], [object Object]) Error: Can't resolve all parameters for setupPlatform: (?, [object Object], [object Object]) typescript typescript

Error: Can't resolve all parameters for setupPlatform: (?, [object Object], [object Object])


I was receiving the same error message. I used Inspect with Chrome Developer Tools to track it to a hasunknowdependency = true error on "PLTCONFIG" as it runs through the NgModules. The missing parameter is the "doc" parameter of setupPlatform(). I then tracked that to the "DOCUMENT" no longer exported from platform-browser issue referenced here: "export 'DOCUMENT' was not found in '@angular/platform-browser'. After I made the changes the error disappeared. I hope this helps.