wwebjs/wwebjs.dev

Compile Errors

Closed this issue · 0 comments

Hi

I installed packet
npm i whatsapp-web.js

I add example code first line to my project

const { Client } = require('whatsapp-web.js');

but while this line is active, the project does not compile.

while this line is passive, the project is compile.

Error messages

**BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }**




**My modules versions** 
Angular CLI: 13.3.10
Node: 14.16.0
Package Manager: npm 6.14.11
OS: win32 x64
Angular: 13.3.12
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.10
@angular-devkit/build-angular   13.3.10
@angular-devkit/core            12.2.18
@angular-devkit/schematics      12.2.18
@angular/cdk                    8.2.3
@angular/cli                    13.3.10
@schematics/angular             12.2.18
rxjs                            6.5.5
typescript                      4.6.4
webpack                         5.83.1

![SS](https://github.com/wwebjs/wwebjs.dev/assets/123541143/81f4ae13-ff87-4fc9-8fa6-6c2e177dac8a)