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

[vite] warning: "import.meta" is not available in the configured target environment ("ES2017") and will be empty #461

Closed
brillout opened this issue Sep 21, 2022 · 3 comments

Comments

@brillout
Copy link
Member

Description

See #101 (comment).

Workaround: #101 (comment).

Error Stack

42 |
43 |  $RefreshReg$(_c, "PageContextProvider");
44 |  if (import.meta.hot) {
   |      ^
45 |    window.$RefreshReg$ = prevRefreshReg;
46 |    window.$RefreshSig$ = prevRefreshSig;

  Plugin: vite:esbuild
  File: (myproject)/renderer/usePageContext.tsx
@brillout
Copy link
Member Author

Upstream ticket: vitejs/vite#10167.

@brillout
Copy link
Member Author

@brillout
Copy link
Member Author

brillout commented Oct 7, 2022

vite@3.2.0-beta.0 was released which includes the fix vitejs/vite#10207. Even though it's a beta, I think we can mark this as fixed.

@brillout brillout closed this as completed Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant