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

Webpack not works #46

Closed
ghost opened this issue Aug 20, 2019 · 3 comments
Closed

Webpack not works #46

ghost opened this issue Aug 20, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2019

ERROR in ./node_modules/engine.io/lib/server.js
    Module not found: Error: Can't resolve 'uws' in './node_modules/engine.io/lib'
     @ ./node_modules/engine.io/lib/server.js 105:17-31
     @ ./node_modules/engine.io/lib/engine.io.js
     @ ./node_modules/socket.io/lib/index.js
     @ ./node_modules/androidjs/lib/back.js
     @ ./node_modules/androidjs/index.js

Seems engine.io is missing the uws dependency - ./node_modules/uws does not exists

if I include uws as a dependency self, I get the same error, ./node_modules/uws exists, but it has only a package.json and README.md, but no js code

Look at https://www.npmjs.com/package/uws, the dependency is depcreated

@ghost
Copy link
Author

ghost commented Aug 20, 2019

I fix this by using an old version of uws which exists still the code (See socketio/socket.io#3249 (comment))

 "uws": "10.148.1"

I can now build the app but now the app crashs, if I 'Profile or Debug APK' with AndroidStudio, I find the follow error in Logcat

Error: Cannot find module 'socket.io-client/dist/socket.io.js'

@ghost
Copy link
Author

ghost commented Aug 20, 2019

I found a patch for me and I reported it directly in socket.io (See socketio/socket.io#3017 (comment))

@ghost ghost changed the title Webpack not works because the missing and deprecated uws dependency Webpack not works Aug 20, 2019
@ghost
Copy link
Author

ghost commented Aug 20, 2019

I close this issue because with this 2 workaround it works

@ghost ghost closed this as completed Aug 20, 2019
This issue was closed.
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

0 participants