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

[email protected]: import_meta.glob is not a function #85

Closed
brillout opened this issue Jun 1, 2021 · 5 comments
Closed

[email protected]: import_meta.glob is not a function #85

brillout opened this issue Jun 1, 2021 · 5 comments

Comments

@brillout
Copy link
Member

brillout commented Jun 1, 2021

The latest Vite release [email protected] breaks and the browser throws Uncaught TypeError: import_meta.glob is not a function.

Seems to be related to the esbuild major update.

vitejs/vite#3617

In the meatime stick to [email protected].

@cedric25
Copy link

cedric25 commented Oct 1, 2021

After running a npm init vite-plugin-ssr@latest, I'm also getting this same error:

pageFiles.ts:5 Uncaught TypeError: import_meta.glob is not a function
    at pageFiles.ts:5

And nothing happens when clicking on the Counter.

I've tried with node 16 / vue-ts, node 14 / vue, node 14 / react, same problem.
I also tried to bump vite to 2.6.2.
Not sure what I did wrong.

@brillout
Copy link
Member Author

brillout commented Oct 1, 2021

@cedric25 I'm having a look

@brillout
Copy link
Member Author

brillout commented Oct 1, 2021

I can reproduce

@brillout
Copy link
Member Author

brillout commented Oct 1, 2021

Temporary solution: pin to "vite": "2.5.10" (note the missing ^).

@brillout brillout reopened this Oct 1, 2021
@brillout
Copy link
Member Author

brillout commented Oct 1, 2021

It's not the same issue, closing in favor of #156

@brillout brillout closed this as completed Oct 1, 2021
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

2 participants