Closed statusunknown418 closed 1 year ago
The types ship with the package. @types/nextjs-routes does not exist.
It looks like you’re trying to import the cjs module into mjs, which isn’t valid. Could you let me know if the issue persists if you import nextjs-routes/config or nextjs-routes/config.mjs?
the error is still present, I changed my next config to .config.js
and used nextjs-routes/config
but throws the error of no declarations found
-- next.config.js and nextjs-routes/config.cjs still throws the same error, as well as next.config.mjs
and nextjs-routes/config.mjs
Thanks for reporting @AlvaroAquijeDiaz. This has been fixed in v1.0.8.
VSCode seems no to be finding the types required for the package,
pnpm add @types/nextjs-routes
package doesn't exist as well