I assume you are talking about ziggy js? Try installing it directly from npm https://www.npmjs.com/package/ziggy-js
Aug 1, 2022
5
Level 4
route method not found for TypeScript based ReactJS component for Inertia
Hi,
I am implementing an e-commerce application and transforming my components from JSX to TSX. I'm getting an issue with the 'route' method not being found in the TSX.
Any idea how I should fix this?
Level 102
@jatinpr If you install it using npm, you should be able to import it like any other npm module
import route from 'ziggy-js'
2 likes
Please or to participate in this conversation.