New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clover] jsdom: Mocks for element scrolling methods are missing #2108
Comments
Thanks for the feedback, I think in this case it makes senses to noop these. |
I see you mean you had a problem with routing, is that so? And can you elaborate on this. Thanks |
When I build a (simple) app, the wildcard route is always rendered on the server. const routes: Routes = [
{ path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule) },
{ path: '**', loadChildren: () => import('./not-found/not-found.module').then(m => m.NotFoundModule) }
]; And on the client, Angular then replaces the |
By |
Yeah, sorry Alan, I mean it happens with SSR (haven't tested prerendering). ng build cloverApp && ng run cloverApp:server && node dist/cloverApp/server/main.js |
I think I might know what’s happening. I’ll take a look at this earlier next week. |
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. |
I'm not sure if Clover is at a stage where you accept issues/PRs 😃 , so let me know if we should wait until you are over a certain point.
But one of the problems† I see is that some scrolling methods are not yet implemented in jsdom like
scrollTo
.https://github.com/jsdom/jsdom/blob/master/lib/jsdom/browser/Window.js#L900
Which causes the server build to fail if a lib uses such a method.
There is already an issue filled...
jsdom/jsdom#1422
...with an open PR:
jsdom/jsdom#2626
The question is: Should we mock it for Clover for now or wait and see?
For example:
† Another problem is routing.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: