Fix JS compilation without an env declared