question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<ComponentName> is not a constructor when nesting components

See original GitHub issue

🐛 Bug Report

🎛 Configuration (.svelterc, package.json, cli command)

  "devDependencies": {
    "parcel-bundler": "^1.8.1",
    "parcel-plugin-svelte": "^1.1.6",
    "svelte": "^2.7.0"
  }

command:

    "start": "parcel --log-level 3 ./index.html"

💻 Code Sample

Seems to reproduce every time I edit any part of the project. The first time I start the parcel process, it compiles, and then making a change or stopping + starting the parcel process, causes the project to stop working, and the following error to be shown in the console:

problem

The problem is that to resolve this error so that I can continue working, I need some sort of combination of:

  • commenting out its usage in the parent componentre
  • deleting it and recreating it
  • renaming the component and all its uses to something else
  • deleting the .cache directory

but there is no definitive combination which appears to fix it. It’s basically impossible to work on my project now.

🌍 Your Environment

See svelte + parcel version above Ubuntu Linux 17.10

Project to reproduce

I’ve created a simple example project.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DeMoorJaspercommented, Jun 6, 2018

Ow alright I’ll look into it as soon as I get some time

1reaction
antonycommented, Jun 5, 2018

Looks like this works well! Awesome work 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reason for Angular not Rendering My Nested Component?
I am trying to nest two components by writing their Element selector ... export class ServersComponent implements OnInit { constructor() ...
Read more >
How to get the class (component's) name in angular. - Medium
Recently i've encountered a problem where i wanted to have a list of different reusable “dynamic” components nested in a wrapper component ......
Read more >
Special elements / <svelte:component> • Svelte Tutorial
A component can change its category altogether with <svelte:component> . Instead of a sequence of if blocks... The this value can be any...
Read more >
UncaughtThrowable (DiMaWo 0.1 API) - MONTEFIORE - Who is who?
For example, if a component A is nested into a component B (but may be nested ... an UncaughtThrowable in function of given...
Read more >
Intent - Android Developers
Implicit Intents have not specified a component; instead, they must include enough information for the system to determine which of the available components...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found