oozcitak / xmlbuilder-js

An XML builder for node.js
MIT License
918 stars 107 forks source link

Typescript Typings Error on Cannot find module 'stream'. #223

Closed serkon closed 4 years ago

serkon commented 5 years ago

ERROR in projects/logo/excel/node_modules/xmlbuilder/typings/index.d.ts(1,22): error TS2307: Cannot find module 'stream'.

This error is exists at 13.0.2 version, when i downgrade to 12.0.1 version there are no warning while compiling.

Thanks for interest

oozcitak commented 5 years ago

Can you please add "node" to types in your tsconfig.json?

VILLAN3LL3 commented 4 years ago

Adding "types": ["node"] tp tsconfig.base.json (Angular 10) doesn't work for me. Any ideas?

oozcitak commented 4 years ago

@VILLAN3LL3 Can you make a test so I can reproduce?

VILLAN3LL3 commented 4 years ago

Thanks for you quick reply @oozcitak I fixed it while trying to create a sample project for you: I had to add "types": ["node"] to tsconfig.app.json instead of tsconfig.base.json. :-)

vazenfino commented 2 years ago

Try removing unnecessary import statements.

axj2047 commented 2 years ago

import {EventEmitter } from '@angular/core';