rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Bug Report]: Error: dlopen(/node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node, 1): no suitable image found

Open changchuncun opened this issue 2 years ago • 2 comments

System Info

System: OS: macOS Mojave 10.14.6 CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Memory: 327.22 MB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 16.16.0 - /usr/local/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 6.14.15 - /usr/local/bin/npm Browsers: Chrome: 111.0.5563.64 Firefox: 109.0.1 Safari: 12.1.2 npmPackages: @rspack/cli: ^0.1.0 => 0.1.1

Details

Error: dlopen(/node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node, 1): no suitable image found. Did find: /node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node: cannot load 'rspack.darwin-x64.node' (load command 0x80000034 is unknown) /node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node: cannot load 'rspack.darwin-x64.node' (load command 0x80000034 is unknown) at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/node_modules/@rspack/binding/binding.js:106:29) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) { code: 'ERR_DLOPEN_FAILED' }

Reproduce link

npm create rspack@latest

Reproduce Steps

yarn dev

changchuncun avatar Mar 17 '23 05:03 changchuncun

Please stick to the template and provide more clearer systeminfo: npx envinfo --system --npmPackages '@rspack/*' --binaries --browsers

h-a-n-a avatar Mar 17 '23 06:03 h-a-n-a

System: OS: macOS Mojave 10.14.6 CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Memory: 327.22 MB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 16.16.0 - /usr/local/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 6.14.15 - /usr/local/bin/npm Browsers: Chrome: 111.0.5563.64 Firefox: 109.0.1 Safari: 12.1.2 npmPackages: @rspack/cli: ^0.1.0 => 0.1.1

changchuncun avatar Mar 17 '23 06:03 changchuncun

i got the same problem

zuolung avatar Mar 22 '23 03:03 zuolung

System: OS: macOS High Sierra 10.13.6 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 1.49 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm Browsers: Chrome: 111.0.5563.64 Safari: 13.1.2 npmPackages: @rspack/cli: ^0.1.1 => 0.1.1 '

zuolung avatar Mar 22 '23 03:03 zuolung

wait wait @h-a-n-a

zuolung avatar Apr 20 '23 07:04 zuolung

@zuolung please help check in latest version whether this problem still exists

hardfist avatar May 22 '23 02:05 hardfist

version: 0.1.11 has got the same problem

Error: dlopen(/Users/apple/Desktop/Dian/sariel/node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node, 1): no suitable image found.  Did find:
        /Users/apple/Desktop/Dian/sariel/node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node: cannot load 'rspack.darwin-x64.node' (load command 0x80000034 is unknown)
        /Users/apple/Desktop/Dian/sariel/node_modules/@rspack/binding-darwin-x64/rspack.darwin-x64.node: cannot load 'rspack.darwin-x64.node' (load command 0x80000034 is unknown)

zuolung avatar May 23 '23 02:05 zuolung

seems related to https://github.com/hashicorp/vagrant/issues/13131, we will take down protobuf and see whether it works, cc @ahabhgk

hardfist avatar May 23 '23 05:05 hardfist

@zuolung please help check in latest version whether this problem still exists

hardfist avatar Jul 12 '23 09:07 hardfist

close issue for long time inactivity, feel free to reopen if you have more question.

hardfist avatar Aug 10 '23 10:08 hardfist

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] avatar Oct 09 '23 10:10 stale[bot]