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.
In my code, i wrote :
url: import.meta.env.PROD ? '/php/login.php' : 'http://localhost/php/login.php'
Then when I use eslint I get :
Parsing error: Unexpected token import
Just because, I guess, eslint makes confusion with the
import
keyword.
Can this be renamed in Vite ? Or should I just set a disable line for eslint ?
import.meta
is not from Vite itself:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import.meta
So please open an issue at eslint for this, if you think that this is an issue.
I don't have lint issues myself, so maybe you should look first if there is already an update or a rule configuration you can adjust
import.meta
is not from Vite itself:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import.meta
So please open an issue at eslint for this, if you think that this is an issue.
I don't have lint issues myself, so maybe you should look first if there is already an update or a rule configuration you can adjust