-
Notifications
You must be signed in to change notification settings - Fork 3
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
The "path" argument must be of type string. Received undefined #2
Comments
Hey @SDAdham, thats probably happening because you haven't defined the path of the routes you want to cache, you need to do it like this: const routeCaches = [
{path: '/', ttl: 86400},
{path: '/explore-recipes', ttl: 86400, useQueryParams: true}
]; |
hi @sbarbat , I did the route cache as this:
and then:
It's defined on my end unless I'm missing something? |
@sbarbat I think the error happens here:
I'm not sure if this is related to the import:
|
@sbarbat I am also facing this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying your implementation but I am getting
The "path" argument must be of type string. Received undefined
when I refresh localhost, not sure why. I'm still investigating...One change on my end, I cannot use
import { ɵCommonEngine as CommonEngine } from '@nguniversal/common/engine';
because it causesCannot find module '@nguniversal/common/engine' or its corresponding type declarations
.This
import { CommonEngine } from '@nguniversal/common/engine';
works, but not sure if that's good to go.The text was updated successfully, but these errors were encountered: