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

astro imagetools Picture and BackgroundImage tags not works after upgrade packages #175

Open
nothinghalosix opened this issue Dec 6, 2023 · 1 comment

Comments

@nothinghalosix
Copy link

nothinghalosix commented Dec 6, 2023

<Picture loading="lazy" src="/images/slider/Header01.jpg" alt="&copy; " width={2400}/>
same with BackgroundImage tag

[astro-imagetools] data-astro-cid-juhulabb is not a valid Picture Config Option

package.json
"@astrojs/sitemap": "^3.0.3",
"@astrojs/tailwind": "5.0.3",
"astro": "^4.0.2",
"astro-imagetools": "^0.9.0",
"date-fns": "^2.30.0",
"sass": "^1.69.5",
"tailwindcss": "^3.3.6"

@nothinghalosix nothinghalosix changed the title astro imagetools not works after upgrade deps astro imagetools Picture and BackgroundImage tags not works after upgrade packages Dec 6, 2023
@trinkel
Copy link

trinkel commented Dec 11, 2023

Same issue with a new install.

package.json

"dependencies": {
	"@astrojs/check": "^0.3.1",
	"astro": "^4.0.3",
	"astro-imagetools": "^0.9.0",
	"typescript": "^5.3.3"

index.astro

<BackgroundImage
	src="/src/images/holidaybg-horz-5710x2958-24.png"
	breakpoints={[200, 400, 800, 1600]}
	backgroundSize="contain"
	fallbackFormat="png"
	artDirectives={[
		{
			src: "/src/images/holidaybg-vert-3197x4848-24.png",
			media: "(orientation: portrait)",
			backgroundSize: "cover",
			backgroundPosition: "right bottom",
		}
	]}
/>

Error (npm run dev)

[astro-imagetools]  data-astro-cid-j7pv25f6  is not a valid BackgroundImage Config Option

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