-
Notifications
You must be signed in to change notification settings - Fork 519
ag grid angular 2 - prerendering issues #841
Comments
Pls give me a solution ASAP |
The Ag-grid library isn't compatible with Universal, meaning it doesn't Render on the server. You can see from the Author that he has no intention of supporting it :( You'll have to pick a component library is compatible with server renders, or disable that option in your application by removing the below attribute from your Views/Home/Index.cshtml view. <app asp-prerender-module="ClientApp/dist/main-server">Loading...</app>
<!-- change it to -->
<app>Loading...</app> |
Thanks! |
Run your app in the Chrome web browser |
This seems to be a support question about Angular and "ag-grid", so I'd recommend taking the discussion to one of those communities. Hope that's OK! |
@ADefWebserver when i console in browser show me like this-------> indigo-pink.css Failed to load resource: the server responded with a status of 404 (Not Found) |
An unhandled exception occurred while processing the request.
Exception: Call to Node module failed with error: Prerendering failed because of error: ReferenceError: HTMLElement is not defined
at Object. (G:\RTS 3.3\RTS3.20\RTS3.17\RTS\RTS\node_modules\ag-grid\dist\lib\filter\baseFilter.js:174:31)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (G:\RTS 3.3\RTS3.20\RTS3.17\RTS\RTS\node_modules\ag-grid\dist\lib\filter\textFilter.js:29:20)
at Module._compile (module.js:571:32)
Current directory is: G:\RTS 3.3\RTS3.20\RTS3.17\RTS\RTS
The text was updated successfully, but these errors were encountered: