swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

Can't find swc-loader bindings on Windows(arm) #78

Closed renzp94 closed 1 year ago

renzp94 commented 1 year ago

mac/window(intel) is ok. window(arm) is error.

Reproduction warehouse:https://github.com/renzp94/swc-loader-bug-demo

log

ERROR in ./test.ts Module build failed (from ./node_modules/swc-loader/src/index.js): Error: Bindings not found. at Compiler.<anonymous> (C:\Users\mr.r\Desktop\swc-loader-bug-demo\node_modules\@swc\core\index.js:225:19) at Generator.next (<anonymous>) at C:\Users\mr.r\Desktop\swc-loader-bug-demo\node_modules\@swc\core\index.js:34:71 at new Promise (<anonymous>) at __awaiter (C:\Users\mr.r\Desktop\swc-loader-bug-demo\node_modules\@swc\core\index.js:30:12) at Compiler.transform (C:\Users\mr.r\Desktop\swc-loader-bug-demo\node_modules\@swc\core\index.js:202:16) at Object.transform (C:\Users\mr.r\Desktop\swc-loader-bug-demo\node_modules\@swc\core\index.js:344:21) at Object.<anonymous> (C:\Users\mr.r\Desktop\swc-loader-bug-demo\node_modules\swc-loader\src\index.js:86:21)

kdy1 commented 1 year ago

https://www.npmjs.com/package/@swc/core-win32-arm64-msvc

Do npm install correctly, from the correct computer.

renzp94 commented 1 year ago

https://www.npmjs.com/package/@swc/core-win32-arm64-msvc

Do npm install correctly, from the correct computer.

Can I automatically export in the @ swc/core package? If I want to use SWC, do I need to install packages for all platforms to ensure that everyone can use them normally on different platforms?

renzp94 commented 1 year ago

https://www.npmjs.com/package/@swc/core-win32-arm64-msvc

Do npm install correctly, from the correct computer.

I just tried it, but it still doesn't work. I installed Win11 in a virtual machine.

kdy1 commented 1 year ago

You should install from the computer with the same cpu and arch

renzp94 commented 1 year ago

Ok.Thanks.