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

node unsupported import now. #6

Closed
komarevtsevdn opened this issue Sep 15, 2016 · 8 comments
Closed

node unsupported import now. #6

komarevtsevdn opened this issue Sep 15, 2016 · 8 comments
Labels

Comments

@komarevtsevdn
Copy link

Hi, this module must startup through babel?

@balthazar
Copy link
Owner

Hi,

No since the babelified scripts are pushed to npm inside the dist folder.

@komarevtsevdn
Copy link
Author

komarevtsevdn commented Sep 16, 2016

Thanks, i started it.
But now, i get error:
TypeError: _protos2.default.CMsgClientHello is not a constructor
at FloatClient._sayHello (/Users/pc/Desktop/memory_leaks_test/csgo-float/src/index.js:125:45)
at SteamClient. (/Users/pc/Desktop/memory_leaks_test/csgo-float/src/index.js:51:12)
at emitOne (events.js:101:20)
at SteamClient.emit (events.js:188:7)
at SteamClient.handlers.(anonymous function) (/Users/pc/Desktop/memory_leaks_test/csgo-float/node_modules/steam/lib/steam_client.js:281:8)
at SteamClient._netMsgReceived (/Users/pc/Desktop/memory_leaks_test/csgo-float/node_modules/steam/lib/steam_client.js:157:26)
at SteamClient.handlers.(anonymous function) (/Users/pc/Desktop/memory_leaks_test/csgo-float/node_modules/steam/lib/steam_client.js:259:10)
at SteamClient._netMsgReceived (/Users/pc/Desktop/memory_leaks_test/csgo-float/node_modules/steam/lib/steam_client.js:157:26)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)

@balthazar
Copy link
Owner

Can you try running npm run protos?

@komarevtsevdn
Copy link
Author

it's throw babel-node protos/update

next startup throw another error:
throw Error("failed to import '"+importFilename+"' in '"+filename+"': file not found");
^

Error: failed to import '/Users/pc/Desktop/memory_leaks_test/csgo-float/protos/engine_gcmessages.proto' in '/Users/pc/Desktop/memory_leaks_test/csgo-float/protos/cstrike15_gcmessages.proto': file not found

@balthazar
Copy link
Owner

What version of node qnd npm are you running?

@komarevtsevdn
Copy link
Author

node -v
v6.5.0
npm -v
3.10.3

@serge1peshcoff
Copy link
Contributor

I've added some error handling to requestFloat() and also I think I fixed this, check this out: #7

@balthazar balthazar added bug and removed question labels Oct 30, 2016
@balthazar
Copy link
Owner

@serge1peshcoff fix should have resolved this. Closing.

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

No branches or pull requests

3 participants