-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Sapper: "is not a valid SSR component" (regression since Carbon 0.27) #729
Comments
Carbon components used: Accordion Given that Header is mentioned in one of the error messages, that seems like a good start to look at. |
That suggestion was for a SvelteKit set-up. I believe that Sapper requires external Svelte components to be installed as development dependencies. What Svelte version are you using? |
@benbucksch I'm trying this with a fresh Sapper/Rollup set-up:
Note: I'm importing the list of components you provided, and |
I can reproduce it with:
I've done a binary search, and it regressed between 0.26 and 0.27. |
A colleage of mine found that this specific commit introduced a breaking change to the props and caused the breakage: 63ef512 |
@benbucksch Indeed, that was a breaking change where |
Indeed, we had We couldn't see the cause due to the horrific error message from Sapper. grr at Sapper. |
Tip for those who run into the same error message and find this bug report by Google: Your cause for this error message might be a different cause entirely. To find your cause, set a breakpoint, and look at the call stack. |
Same problem as #595, but with Sapper and Carbon 0.39.
This is a regression between carbon-components-svelte 0.26 and 0.39. It works fine in 0.26 and fails in 0.39. The problem appears immediately after the upgrade and goes away when I downgrade. I'm using Sapper 0.28.10.
Following the suggestion in #595, I've removed the dev dependency on carbon and re-added carbon 0.39 as direct dependency, but the problem persists.
The following error appears on the console where I run Sapper, and also in the browser (as the only page content) when I run the app.
As dev dependency:
<svelte:component this={...}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules
As direct dependency:
<Header> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules
The text was updated successfully, but these errors were encountered: