We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bba333 + 72a20c3 commit 722db5cCopy full SHA for 722db5c
packages/react-router-dev/typescript/typegen.ts
@@ -34,7 +34,9 @@ export async function watch(ctx: Context) {
34
const appDirectory = Path.normalize(ctx.appDirectory);
35
const routesTsPath = Path.join(appDirectory, "routes.ts");
36
37
- const routesViteNodeContext = await ViteNode.createContext();
+ const routesViteNodeContext = await ViteNode.createContext({
38
+ root: ctx.rootDirectory,
39
+ });
40
async function getRoutes(): Promise<RouteManifest> {
41
routesViteNodeContext.devServer.moduleGraph.invalidateAll();
42
routesViteNodeContext.runner.moduleCache.clear();
0 commit comments