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

During live preview, SyntaxError: Cannot use 'import.meta' outside a module #16

Closed
mbostock opened this issue Oct 18, 2023 · 1 comment
Assignees
Labels
bug Something isn’t working

Comments

@mbostock
Copy link
Member

I’m not sure how we would fix this, but our current approach of eval’ing JavaScript source during live preview makes it incompatible with import.meta; however, you can use import.meta when the page loads (and statically when building the site). So, it’d be nice if we could make import.meta work consistently.

@mbostock mbostock added the bug Something isn’t working label Oct 18, 2023
@mbostock mbostock added this to the Future milestone Nov 13, 2023
@mbostock mbostock self-assigned this Mar 1, 2024
@mbostock
Copy link
Member Author

mbostock commented Mar 1, 2024

Fixed in #843.

@mbostock mbostock closed this as completed Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant