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

JS Error in common.js when using vector.js in viz #5

Open
netgusto opened this issue Nov 20, 2017 · 1 comment
Open

JS Error in common.js when using vector.js in viz #5

netgusto opened this issue Nov 20, 2017 · 1 comment

Comments

@netgusto
Copy link
Member

netgusto commented Nov 20, 2017

ERROR in ./node_modules/bytearena-sdk/lib/commonjs/comm.js
Module not found: Error: Can't resolve 'dgram' in '/Users/jerome/Code/javascript/bytearena-viz/node_modules/bytearena-sdk/lib/commonjs'
 @ ./node_modules/bytearena-sdk/lib/commonjs/comm.js 8:13-29
 @ ./node_modules/bytearena-sdk/lib/commonjs/index.js
 @ ./src/helper/debugSegments.js
 @ ./src/game/game.js
 @ ./src/index.js

Happens when requiring vector in browser context with webpack.

import { vector } from "bytearena-sdk";
@netgusto netgusto changed the title JS Error when using common.js when using comm.js in viz JS Error in common.js when using comm.js in viz Nov 20, 2017
@netgusto
Copy link
Member Author

netgusto commented Nov 20, 2017

Hint: dgram is a UDP handling package, so probably not working in non-node context (like in webpack).

@netgusto netgusto reopened this Nov 20, 2017
@netgusto netgusto changed the title JS Error in common.js when using comm.js in viz JS Error in common.js when using vector.js in viz Nov 20, 2017
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

1 participant