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

Unable to compile no-kafka v 3.2.10 in Angular 6 #226

Open
Son-Lam opened this issue May 23, 2018 · 0 comments
Open

Unable to compile no-kafka v 3.2.10 in Angular 6 #226

Son-Lam opened this issue May 23, 2018 · 0 comments

Comments

@Son-Lam
Copy link

Son-Lam commented May 23, 2018

Hello,

Could you help with this compilation issue on Angular 6?

+Environment Information

OS [e.g. Mac, Arch, Windows 10]: OSX 10.13.4
Node Version [e.g. 8.2.1]: 10.1.0
NPM Version [e.g. 5.4.2]: 5.6.0
C++ Toolchain [e.g. Visual Studio, llvm, g++]: g++
no-kafka version [e.g. 3.2.10]: 3.2.10

+Steps to Reproduce
I attached here a short Angular 6 project. Here is the instruction how to re-produce the issue:
poc-no-kafka.zip

  1. Install NodeJs 10.1.0
  2. Install Angular CLI by running: npm install -g
  3. extract the attached zip file
  4. cd poc-no-kafka
  5. npm install
  6. ng serve --open

You will get this log in command line:

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
                                                                                          
Date: 2018-05-23T15:55:41.129Z
Hash: 129dc61f9a6432c0e8e4
Time: 3073ms
chunk {main} main.js, main.js.map (main) 1.94 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 687 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 15.6 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 325 kB [initial] [rendered]

ERROR in ../node_modules/no-kafka/types/client.d.ts(1,22): error TS2307: Cannot find module 'tls'.
../node_modules/no-kafka/types/kafka.d.ts(19,16): error TS2304: Cannot find name 'Buffer'.
../node_modules/no-kafka/types/producer.d.ts(1,22): error TS2307: Cannot find module 'tls'.
../node_modules/no-kafka/types/simple_consumer.d.ts(1,22): error TS2307: Cannot find module 'tls'.

ℹ 「wdm」: Failed to compile.
@Son-Lam Son-Lam changed the title Unable to compile no-kafka v 3.2.9 Unable to compile no-kafka v 3.2.10 in Angular 6 May 23, 2018
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