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

Can't resolve 'https' in '..\node_modules\validate-vat\lib' #47

Open
adilorenzodema opened this issue Feb 23, 2022 · 2 comments
Open

Can't resolve 'https' in '..\node_modules\validate-vat\lib' #47

adilorenzodema opened this issue Feb 23, 2022 · 2 comments

Comments

@adilorenzodema
Copy link

Hi! I import, in my angular project, the library 'validate-vat': "^0.8.0" and I use it in my .ts file as following:

let validate = require('validate-vat');

but the compilator generate an error:

Error: ./node_modules/validate-vat/lib/index.js
Module not found: Error: Can't resolve 'https' in 'C:\Users\developer\Desktop\progetti\bus-firenze-gui\node_modules\validate-vat\lib'

Could you help me? Is This library compatible with Angular 11?

@dnsnx
Copy link

dnsnx commented Jun 8, 2022

Same issue here. I'm using react 17.

@Aichnerc
Copy link

Same here. ReactJS 18.

Module not found: Error: Can't resolve 'url' in 'C:\Users...\node_modules\validate-vat\lib'

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.

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

3 participants