ngx-scrollbar
ngx-scrollbar copied to clipboard
analogjs ssr with ng-scrollbar
Reproduction
Steps to reproduce:
- install analogjs with ssr enabled
- use ng-scrollbar on (index).page.ts
Expected Behavior
What behavior were you expecting to see?
SSR to work with ng-scrollbar
Actual Behavior
What behavior did you actually see?
ERROR TypeError: Cannot read properties of null (reading 'firstCreatePass')
at providersResolver (file:///Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:26718:15)
at definition.providersResolver (file:///Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:26979:24)
at initializeDirectives (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:11111:17)
at resolveDirectives (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:11085:13)
at elementStartFirstCreatePass (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:22249:5)
at Module.ɵɵelementStart (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:22285:9)
at TrendingComponent_Template (/Users/leblancmeneses/organizations/rh/labs/apps/startupwiki/src/app/components/trending/trending.component.ts:32:35)
at executeTemplate (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:10573:9)
at renderView (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:11775:13)
at renderComponent (/Users/leblancmeneses/organizations/rh/labs/node_modules/@angular/core/fesm2022/core.mjs:11721:5)
Environment
- Angular:
- 17.2.4
- ngx-scrollbar:
- ^14.0.0
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
"@analogjs/platform": "1.1.2",
Workaround:
ssr: {
noExternal: [
....
'ngx-scrollbar/**',
],
},