|
throw new ReactException("WebRootPath was null, has the wwwroot folder been deployed along with your app?"); |
Use ContentRootPath if WebRootPath is null
- if both are null, then throw
Some applications use react ssr, server react components through API's without a wwwroot folder, and some applications use the react ssr only, still no wwwroot.
Or an additional method allowing the consumer of the package to pass in full paths of the scripts.