Skip to content
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

error when trying to require the steamworks.js with nw.js #131

Open
prominentdetail opened this issue Jan 26, 2024 · 8 comments
Open

error when trying to require the steamworks.js with nw.js #131

prominentdetail opened this issue Jan 26, 2024 · 8 comments

Comments

@prominentdetail
Copy link

I get this message:

Uncaught Error: The specified procedure could not be found.
\\?\D:\projectname\node_modules\steamworks.js\dist\win64\steamworksjs.win32-x64-msvc.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1365:18)
    at Module.load (node:internal/modules/cjs/loader:1116:32)
    at Module._load (node:internal/modules/cjs/loader:963:12)
    at Module.require (node:internal/modules/cjs/loader:1140:19)
    at require (node:internal/modules/helpers:128:18)
    at Object.<anonymous> (D:\projectname\node_modules\steamworks.js\index.js:8:21)
    at Module._compile (node:internal/modules/cjs/loader:1258:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1318:10)
    at Module.load (node:internal/modules/cjs/loader:1116:32)
    at Module._load (node:internal/modules/cjs/loader:963:12)

I'm using nw.js 0.80.0 for windows.
Any ideas what the problem is?

@AuWiMo
Copy link
Contributor

AuWiMo commented Mar 3, 2024

Please share how you resolved this if possible

@prominentdetail
Copy link
Author

@AuWiMo I wasn't able to solve it- I don't know how to make it work.

@AuWiMo
Copy link
Contributor

AuWiMo commented Mar 12, 2024

I believe fixed it with the method I suggest here: 83880bc

I do believe I was also having another problem and am not entirely sure this is the solution to this one, but im fairly confident.

@prominentdetail
Copy link
Author

@AuWiMo , I'm not using electron. That looks like something for electron?

@AuWiMo
Copy link
Contributor

AuWiMo commented Mar 12, 2024

it is. sorry, idk what this was then

@MikalDev
Copy link

MikalDev commented Mar 12, 2024

As far as I know this is an issue with napi-rs. I and another created workarounds for it, discussed on the issue below. You'll need to edit the rs and build again, so you'll need an environment to build binaries.

napi-rs/napi-rs#1480

Scroll down to to the bottom and you'll see my hack and a patch file from the other dev.

@prominentdetail
Copy link
Author

I haven't built anything- I'm not sure how to do that and prefer just a simple download. This steamwork.js isn't very user-friendly in my opinion. I don't use npm for example.

@ceifa
Copy link
Owner

ceifa commented May 3, 2024

Being tracked on #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants