-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Eleventy templates esm related errors are rather unhelpful #3571
Comments
thoughtsunificator
changed the title
Eleventy templates import system errors are unhelpful
Eleventy templates esm related errors are unhelpful
Dec 5, 2024
This is what you'd be getting running the file directly:
|
The same problem also occurs with:
|
Even worse if your eleventy config contains invalid syntax such as:
|
thoughtsunificator
changed the title
Eleventy templates esm related errors are unhelpful
Eleventy templates esm related errors are rather unhelpful
Dec 7, 2024
Related #3580 |
Error messaging will show file path in v3.0.1-alpha.1—thank you!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Operating system
Linux
Eleventy
3.0.0
Node
Node.js v24.0.0-pre
Describe the bug
A template file,
foo.11ty.js
with the following code:yields:
The problem is that there are no clear indicators as to the origins of the error.
Reproduction steps
Assuming linux and bash:
[foo@bar ~]$ echo "export const" > /tmp/foo.11ty.js && npx @11ty/eleventy@3.0.0 --input=/tmp/foo.11ty.js
Expected behavior
I should be getting a real indicator as to the origins of the error.
Reproduction URL
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: