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

Can't resolve 'tls' ,how to resolve it? #67

Open
codepandy opened this issue Aug 30, 2017 · 2 comments
Open

Can't resolve 'tls' ,how to resolve it? #67

codepandy opened this issue Aug 30, 2017 · 2 comments

Comments

@codepandy
Copy link

ERROR in ./node_modules/stomp-client/lib/client.js
Module not found: Error: Can't resolve 'tls' in 'C:\projects\demos\STOMP\node_modules\stomp-client\l
ib'
@ ./node_modules/stomp-client/lib/client.js 3:10-24
@ ./src/requireComponent.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:8686 ./src/index.js

@easternbloc
Copy link
Owner

what were your steps to get to this?

@benhorst
Copy link

benhorst commented Nov 9, 2017

Can't speak for codepandy directly, but it happens when you try to build a webpack bundle for a browser target. I tried it too before I realized that the client is built for nodejs, not the browser platform (inclusion of "client" threw me in the name).

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

3 participants