Skip to content
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

Module '"@uniformdev/canvas-next-rsc/component"' has no exported member 'generateStaticParams' #11

Closed
mathwo opened this issue Feb 5, 2025 · 1 comment
Assignees

Comments

@mathwo
Copy link

mathwo commented Feb 5, 2025

This is a newbie question:

https://github.com/uniformdev/component-starter-kit-next-approuter?tab=readme-ov-file mentions that to change rendering mode to SSG, enable the line 10 generateStaticParams:

export { generateStaticParams } from '@uniformdev/canvas-next-rsc';

but i met the error:

Module '"@uniformdev/canvas-next-rsc/component"' has no exported member 'generateStaticParams'

Any resolution to this error? Thanks

@alexshyba
Copy link
Contributor

Hello @mathwo there is a typo in a comment, sorry about that! Instead of @uniformdev/canvas-next-rsc/component please use @uniformdev/canvas-next-rsc:

export { generateStaticParams } from '@uniformdev/canvas-next-rsc';

I double checked, the examples/ssg branch is working for me:
https://github.com/uniformdev/component-starter-kit-next-approuter/blob/examples/ssg/src/app/%5B%5B...path%5D%5D/page.tsx#L8

Please confirm once you have a chance.

@alexshyba alexshyba self-assigned this Feb 6, 2025
@alexshyba alexshyba pinned this issue Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants