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

Islands import. Could not find chunk for Issue. #2761

Open
predaytor opened this issue Nov 13, 2024 · 0 comments
Open

Islands import. Could not find chunk for Issue. #2761

predaytor opened this issue Nov 13, 2024 · 0 comments

Comments

@predaytor
Copy link

When using this type of export, sometimes throws an error when running in production (fly.io, Docker build). Cannot to reproduce locally.

import {
	CarouselButton as Button,
	CarouselContent as Content,
	CarouselControls as Controls,
	CarouselRoot as Root,
	CarouselScroller as Scroller,
	CarouselSlide as Slide,
	CarouselTitle as Title,
} from './carousel.tsx';

export type {
	CarouselButtonProps,
	CarouselContentProps,
	CarouselControlsProps,
	CarouselRootProps,
	CarouselScrollerProps,
	CarouselSlideProps,
	CarouselTitleProps,
} from './carousel.tsx';

export const Carousel = Object.assign(Root, { Title, Controls, Button, Content, Scroller, Slide });
<Carousel>
	<Carousel.Scroller>
		<Carousel.Content>
			{project.coverGallery.gallery.nodes.map((slide, slideIdx) => {
				return <Carousel.Slide key={slide.id}></Carousel.Slide>;
			})}
		</Carousel.Content>
	</Carousel.Scroller>
</Carousel>

Logs:

2024-11-13T19:15:03Z app[287133dc001028] ams [info]Error: Could not find chunk for CarouselRoot /app/islands/carousel/carousel.tsx#CarouselRoot
2024-11-13T19:15:03Z app[287133dc001028] ams [info]    at https://jsr.io/@fresh/core/2.0.0-alpha.25/src/runtime/server/preact_hooks.tsx:463:15
2024-11-13T19:15:03Z app[287133dc001028] ams [info]    at Array.map (<anonymous>)
2024-11-13T19:15:03Z app[287133dc001028] ams [info]    at Object.FreshRuntimeScript (https://jsr.io/@fresh/core/2.0.0-alpha.25/src/runtime/server/preact_hooks.tsx:460:37)

https://jsr.io/@fresh/core/2.0.0-alpha.25/src/runtime/server/preact_hooks.tsx#L463

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

1 participant