Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

314
Views
TypeError: WEBPACK_IMPORTED_MODULE

Here is a tiny part of my project structure

src
  features
    settings
       routes
          settings.routes.tsx
       settings.ts
  routes
    routes.config.ts

settings.routes.tsx

const SETTINGS_SCREEN: RouteItemDef = {
  id: "settings",
  path: SettingsPathsEnum.SETTINGS,
  navigationTitle: "settings.navigationTitle",
  component: SettingsRoutes,
  nestedRoutes: [
    {
      id: "projects",
      path: SettingsPathsEnum.PROJECTS,
      navigationTitle: "settingsProjects.navigationTitle",
      component: ProjectsScreen,
      layout: SidebarLayout, // using this line i'm getting error that I mentioned
    } 
   ]
 }

 export const SETTINGS_ROUTES = [SETTINGS_SCREEN];

settings.ts

// ROUTES
export * from "./routes/settings.routes";

routes.config.ts

import { AUTH_ROUTES } from "@app/features/auth/auth";
import { HOME_ROUTES } from "@app/features/home/home";
import { SETTINGS_ROUTES } from "@app/features/settings/settings";

export const ROOT_ROUTE = "/";

export const PUBLIC_LIST = [...AUTH_ROUTES];
export const PRIVATE_LIST = [...HOME_ROUTES, ...SETTINGS_ROUTES];

In settings.routes.tsx file when i use layout inside nestedRoutes array of object I get the error attached bellow

image of error that i'm getting

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!