i want to change the styling of an opensource app developed with angular and when i tried to build it with ng build --watch
i get the following error :
Error: node_modules/@types/node/buffer.d.ts:90:14 - error TS2661: Cannot export 'Buffer'. Only local declarations can be exported from a module.
What can I do to fix it ?
Asked
Active
Viewed 1,599 times
2

khoudi Anis
- 21
- 2
-
Something with ngModules export, I guess. Please share code of app.module or corresponding module of the component. – vsnikhilvs Aug 18 '21 at 13:23
-
I have attached the code for the file app.module.ts here : https://codepen.io/Anis-k/pen/XWRLaEX – khoudi Anis Aug 18 '21 at 14:06
-
and here's the file where the error occurs : https://codepen.io/Anis-k/pen/GRmbMje – khoudi Anis Aug 18 '21 at 14:30
-
Had this same thing on an Angular project, the issue turned out to be jdenticon: https://github.com/dmester/jdenticon/releases/tag/3.1.1 – Tyler Church May 27 '22 at 17:09
1 Answers
2
I know that it is not the best solution to the problem, but at least it allows us to continue while the github community manages to give some resolution to the bug
In the tsconfig.json
add or change "skipLibCheck": false
Bibliography:

Daniel Morfa Vega
- 66
- 6
-
Thanks so much. I needed this because of https://github.com/pouchdb/pouchdb/issues/8544 – Joseph Simpson Feb 27 '23 at 12:19