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

Module not found: Error: Can't resolve 'util' in 'E:\potatoLogics\name\node_modules\xmlbuilder2\lib' #99

Closed
tahir-jamil opened this issue Oct 13, 2021 · 3 comments

Comments

@tahir-jamil
Copy link

Hi i have installed ngx-export-as for the very first time and i am getting following error please help me fixing this
image

@wnabil
Copy link
Owner

wnabil commented Oct 13, 2021

Hi
Check this issue, try installing 'util' package or adding it to the path array in the config
'npm i --save util'
angular/angular-cli#20819

@JoeWorker
Copy link

JoeWorker commented Nov 3, 2021

npm install util

takes away the error, but now it sits in the browser...

Uncaught ReferenceError: process is not defined
94655 util.js:109
Webpack 23
webpack_require
26542
webpack_require
48445
webpack_require
93474
webpack_require
63607
webpack_require
42066
webpack_require
54443
webpack_require
36747
webpack_require
14431
webpack_require
webpack_exec

O

webpackJsonpCallback

@chernodub
Copy link

In case you're using Node 16 and Angular 13+

I figured out a way to resolve this without installing any polyfills by doing the following:

  • fall back to 1.12.0 by running npm i [email protected]
  • add an overrides section to package.json (instead of ~13.3.10 you could use your current Angular version)
         "overrides": {
           "ngx-export-as": {
             "@angular/core": "~13.3.10",
             "@angular/common": "~13.3.10"
           }
         }

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

4 participants