I haven’t been able to produce this issue.
I tried a basic setup with:
const HomePage = () => {
return (
<>
<Link to={routes.pageWithParam({ param: 'test' })}>
Page with param: test
</Link>
<hr />
<BlogPostsCell />
</>
)
}
const PageWithParamPage = ({ param }: { param: string }) => {
return (
<>
<h1>PageWithParamPage</h1>
<p>Param: {param} </p>
</>
)
}
...
<Route path="/with-param/{param:String}" page={PageWithParamPage} name="pageWithParam" />
...
describe('HomePage', () => {
it('renders successfully', () => {
expect(() => {
render(<HomePage />)
}).not.toThrow()
})
})
Does running yarn rw g types
help at all? Any recommendations on reproducing this?