vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
778 stars 50 forks source link

out of bounds memory access #105

Closed ar7casper closed 1 year ago

ar7casper commented 1 year ago

Hey

I'm using your plugin, and I get RuntimeError: out of bounds memory access. The weird part is that it works fine on my machine but not my colleague's. Although we have identical versions. Using node 18 / 20. (fails on both) yarn 1.22.19. nx 16.1.4 vite 4.3.5

Using Mac m1.

ArnaudBarre commented 1 year ago

Is this something happening on the default template?

ar7casper commented 1 year ago

Is this something happening on the default template?

Not sure what a default template is 😎

ArnaudBarre commented 1 year ago

yarn crate vite template TS-SWC

ar7casper commented 1 year ago

@ArnaudBarre

Found the isssue. Had @swc/core - 1.2.x And you were using 1.3.58.

The reason it was difficult to track it down is because with 1.3.53 there were no issues....

ArnaudBarre commented 1 year ago

Not sure to understand which version of SWC doesn't work for you? It the latest working? If yes we can close the issue

ar7casper commented 1 year ago

You can close. Collision of versions. Multiple packages had different versions of swc