-
Notifications
You must be signed in to change notification settings - Fork 21
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-plugin-posthtml] Crashes on Node.js v16.8.0 #85
Comments
This is a fatal bug !I'm doing a build in github action and the problem occurs in both node version 16.6.2 and node version 14.18.2. The strange thing is that when I buiid the same above node version on local windows there is no problem. But for now, it is clear that this problem is generated by the following code👇:
Can be obtained from document PerformanceObserver.observe(). |
I fixed the error after making the following changes👇: - observer.observe({ entryTypes: ['measure'], type: 'measure' });
+ observer.observe({ entryTypes: ['measure'] }); |
This behavior still appears on my code, did you made pull request concerning this one? @zsdycs |
👌 |
I'll submit a merger request later. But I think the merger will take some time. Because it seems that this library has not been active for a long time. I suggest using this to solve your problem quickly. Replace this library with your own code. |
Hey all, sorry for the delay. I'm in the process of cleaning up this repo over the next week or so. I'll push a fix then.
… On Jan 29, 2022, at 6:11 PM, 李鹏坤-执手对影成双 ***@***.***> wrote:
I'll submit a merger request later. But I think the merger will take some time. Because it seems that this library has not been active for a long time.
I suggest using this to solve your problem quickly. Replace this library with your own code.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
|
@Snugug any word on the cleanup or if we should switch to a different option? |
Sorry, I forgot to submit the PR. You can follow the merger status of this PR for this issue. |
Vite build fails due to
vite-plugin-posthtml
when executed on Node.js v16.8.0 with the following error 👇🛠 Steps to reproduce
package.json
vite-plugin-posthtml
asdevDependencies
"type": "module"
inpackage.json
to use ESM modulesvite.config.js
👇src/index.html
filenpx vite --config vite.config.js build src
Version Information:
node
: v16.8.0npm
: v7.21.0vite
: v2.5.1vite-plugin-posthtml
: v0.0.3🔬 Additional Context
The latest known version of Node.js in which the plugin works perfectly is v16.6.2 and
vite-plugin-posthtml
starts to crash right from the next release.Thank you 😊
The text was updated successfully, but these errors were encountered: