wallabyjs / quokka

Repository for Quokka.js questions and issues
https://quokkajs.com
1.17k stars 31 forks source link

Quokka extension causes a deprecation warning in the console #930

Closed lunelson closed 5 months ago

lunelson commented 5 months ago

Type: Bug

I used "extension bisect" and it identified quokka as the cause of this console error:

ERR [Extension Host] (node:6026) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code Helper (Plugin) --trace-deprecation ...` to show where the warning was created)

Extension version: 1.0.621 VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:11.430Z) OS version: Darwin arm64 23.2.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|10, 6, 5| |Memory (System)|32.00GB (2.55GB free)| |Process Argv|--crash-reporter-id 3eeb5f38-28fb-4ce7-b7cf-15288234da3e| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30933248 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 3ef8e399:30949928 ```
mburnell commented 5 months ago

Thanks for reporting this issue. We have identified and fixed a number of usages of the deprecated Buffer logic. However, our investigation has shown that the easiest-to-encounter instance of this issue triggered by Quokka is actually from calling into a Microsoft Live Share component. We're still investigating, but at this stage it doesn't look like there's anything we can do except report the problem to the appropriate team.

Could you please try (temporarily) disabling your Live Share extension and seeing if the problem goes away?

lunelson commented 5 months ago

Thanks @mburnell, yes I can confirm that after disabling Live Share this console error does not occur

mburnell commented 5 months ago

Thanks for the confirmation. I've dug a bit deeper and reported the issue at https://github.com/MicrosoftDocs/live-share/issues/5024.

smcenlly commented 5 months ago

Closing this issue as this is resolved from Quokka perspective.