-
Notifications
You must be signed in to change notification settings - Fork 7
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
v1.0.0 fails in Yarn projects with Plug'n'Play #15
Comments
Could you please supply a demo project with Yarn PnP? Additionally, what Yarn version are you using? Maybe some version of Yarn PnP don't support ESM. |
Thanks for looking into it @KusStar! Here's a project where |
It seems to be related to these issues: |
Thanks for pointing out the solution, but the > [!CAUTION]
> In this alpha version, we are using the built-in `import.meta.resolve` function. It is still behind an experimental flag until Node v20.6.0, and as of v21.6.0, its `parentURL` parameter is still flagged. Hence, for this version of the library to work correctly, you _must_ run Node with the `--experimental-import-meta-resolve` flag. Just use |
It currently only works in a limited way, installing and using it in your project via Contrary to expectations, It only works in a limited way, so we'll need to reopen the issue. |
Following this commit, Yarn projects with Plug'n'Play no longer works (version
0.11.0
worked so long as the project setyarn unplug vite-bundle-visualizer
).The error after upgrading to 1.0.0:
The text was updated successfully, but these errors were encountered: