Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate svelte/internals leads to various errors #150

Open
canadaduane opened this issue Oct 7, 2020 · 1 comment
Open

Duplicate svelte/internals leads to various errors #150

canadaduane opened this issue Oct 7, 2020 · 1 comment

Comments

@canadaduane
Copy link
Contributor

🐛 Bug Report

This is a bit difficult to track down, so let me outline a few pieces to the puzzle.

First, the error I'm getting is

Uncaught (in promise) TypeError: Cannot read property 'c' of undefined
    at transition_out (index.mjs:785)
    at Object.outro [as o] (Mirror.svelte:1127)
    at transition_out (index.mjs:793)
    at Object.outro [as o] (SampleApp.svelte:83)
    at transition_out (index.mjs:793)
    at Object.update [as p] (SampleApp.svelte:249)
    at update (index.mjs:741)
    at flush (index.mjs:709)

This appears to be the same issue as reported here and here.

Like the other issues reported above, I'm importing a svelte component from another npm package. Both the parent project and the child package happen to be my own. I believe what's happening is that two copies of svelte/internals is being loaded, and the resulting error message (again, above) is a symptom.

One solution proposed for webpack is to use resolve.mainFields. Is there an equivalent directive in parceljs?

Is there another way to direct parceljs to use only one copy of svelte/internals?

🌍 Your Environment

Svelte version: 3.29.0

Parcel version: 1.12.4

@cupcakearmy
Copy link

Yes, I'm having the same the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants