SolidJSS
SolidJSโ€ข8mo agoโ€ข
1 reply
aws

Lazy route error

Hi i am trying play with my small project written in solidjs

But after i update solid and solid start i am getting this error


/project/node_modules/.pnpm/@solidjs+start@1.1.4_solid-js@1.9.7_vinxi@0.5.7_@types+node@22.10.5_db0@0.3.2_ioredis@5_4ebe7f61ff5321423c58ef70011e385f/node_modules/@solidjs/start/dist/router/lazyRoute.js:11
const mod = await manifest.inputs[component.src].import().catch(() => null);

TypeError: Cannot read properties of undefined (reading 'catch')

app.tsx

import {Router} from "@solidjs/router";
import {FileRoutes} from "@solidjs/start/router";
import {Suspense} from "solid-js";

export default function App() {
  return (
      <Router root={(props) => (<Suspense>{props.children}</Suspense>)} >
        <FileRoutes />
      </Router>

);
}


and index.tsx
export default function Home() {
        return (<div></div>);
    }

i dont know how this kind of error debug and find what is wrong.

Thanks for help.
Was this page helpful?