Skip to content

Uncaught TypeError: Comp is not a function #212

@jessybreyne

Description

@jessybreyne

Describe the bug

I followed the example of the doc. But the rooter does not work. I let you see the example on stackblitz. I have the following message in my console in the browser:

Uncaught TypeError: Comp is not a function
    at chunk-BMOKTV46.js?v=c0f3a5c4:560:12
    at untrack (chunk-BMOKTV46.js?v=c0f3a5c4:452:12)
    at Object.fn (chunk-BMOKTV46.js?v=c0f3a5c4:556:37)
    at runComputation (chunk-BMOKTV46.js?v=c0f3a5c4:753:22)
    at updateComputation (chunk-BMOKTV46.js?v=c0f3a5c4:738:3)
    at devComponent (chunk-BMOKTV46.js?v=c0f3a5c4:566:3)
    at createComponent (chunk-BMOKTV46.js?v=c0f3a5c4:1326:10)
    at shared.element.component.element.element [as outlet] (routing.js:52:21)
    at get children [as children] (components.jsx:57:68)
    at Object.fn (chunk-BMOKTV46.js?v=c0f3a5c4:1086:35)

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-bptwek?file=src/App.jsx

Steps to Reproduce the Bug or Issue

  1. Create a rooter like the doc in jsx
  2. See the error in console

Expected behavior

  1. A router with routes, without error in console

Screenshots or Videos

No response

Platform

  • OS: [Linux]
  • Browser: [Brave]
  • Version: [last]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions