-
Hello there, I'm trying to get V1 route convention to work with the new vite plugin but got the below error. Is this a remix issue or am I doing something wrong? Here is the a the reproduction environment: https://stackblitz.com/edit/remix-vite-v1-routes Error: No route matches URL "/example/new"
at getInternalRouterError (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/router/router.ts:4483:5)
at Object.query (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/router/router.ts:2933:19)
at handleDocumentRequestRR (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/server-runtime/dist/server.js:180:35)
at requestHandler (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/server-runtime/dist/server.js:105:24)
at eval (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/express/dist/server.js:41:22)
No routes matched location "/example/new"
ErrorResponseImpl {
status: 404,
statusText: 'Not Found',
internal: true,
data: 'Error: No route matches URL "/example/new"',
error: Error: No route matches URL "/example/new"
at getInternalRouterError (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/router/router.ts:4483:5)
at Object.query (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/router/router.ts:2933:19)
at handleDocumentRequestRR (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/server-runtime/dist/server.js:180:35)
at requestHandler (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/server-runtime/dist/server.js:105:24)
at eval (/home/projects/remix-vite-v1-routes/node_modules/@remix-run/express/dist/server.js:41:22)
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Change |
Beta Was this translation helpful? Give feedback.
-
It looks like you're not using Vite actually. Instead of remix/templates/unstable-vite/package.json Lines 6 to 7 in 36ccae4 Could you try starting from the official template? https://github.com/remix-run/remix/tree/main/templates/unstable-vite |
Beta Was this translation helpful? Give feedback.
-
heres the complete answer, we are struggling too to create folder based routing, add this line in remix({
my vite.config.js file lloks like this after updating it
root directory Best Regards |
Beta Was this translation helpful? Give feedback.
It looks like you're not using Vite actually. Instead of
remix dev
andremix build
, the scripts should look like this:remix/templates/unstable-vite/package.json
Lines 6 to 7 in 36ccae4
Could you try starting from the official template? https://github.com/remix-run/remix/tree/main/templates/unstable-vite