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

JS import attributes break watch #3344

Closed
LeaVerou opened this issue Jul 2, 2024 · 2 comments
Closed

JS import attributes break watch #3344

LeaVerou opened this issue Jul 2, 2024 · 2 comments

Comments

@LeaVerou
Copy link

LeaVerou commented Jul 2, 2024

Operating system

macOS Sonoma 14.5 (23F79)

Eleventy

3.0.0-alpha.14

Describe the bug

If either eleventy.js or any data file contain an import with import attributes, e.g.:

import sections from "../data/sections.json" with { type: "json" };

Then npm run watch fails with:

image

npm run build works normally.

Reproduction steps

No response

Expected behavior

No response

Reproduction URL

No response

Screenshots

No response

@uncenter
Copy link
Contributor

uncenter commented Jul 2, 2024

Duplicate of #3128 (now tracked at 11ty/eleventy-dependency-tree-esm#2 though). I'd recommend reading through the first for context on the issue and solutions for it, the second is good to watch if you want to get notifications for when the root issue is resolved.

@LeaVerou
Copy link
Author

LeaVerou commented Jul 3, 2024

Gah, I should never file issues without searching because "surely nobody else has stumbled on this" 🤦🏽‍♀️ Sorry!

@LeaVerou LeaVerou closed this as completed Jul 3, 2024
@LeaVerou LeaVerou reopened this Jul 3, 2024
@LeaVerou LeaVerou closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants