You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
sanskar-mk2
changed the title
🐛 BUG: @astrojs/compiler panic when import.meta.env is imported before other import
🐛 BUG: @astrojs/compiler panic when import.meta.env is called before other imports
Sep 1, 2022
What version of
astro
are you using?latest stable
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
@astrojs/compiler
encountered an unrecoverable error when compiling the following file.C:/Users/sohma_w4/bug-reproduce/src/pages/index.astro
When using
import.meta.env
. It must always be the last import, otherwise the compiler panics.Link to Minimal Reproducible Example
https://github.com/sanskar-mk2/bug-reproduce
Participation
The text was updated successfully, but these errors were encountered: