validate-vat icon indicating copy to clipboard operation
validate-vat copied to clipboard

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

Open adilorenzodema opened this issue 3 years ago • 2 comments

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?

adilorenzodema avatar Feb 23 '22 16:02 adilorenzodema

Same issue here. I'm using react 17.

dnsnx avatar Jun 08 '22 08:06 dnsnx

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.

Aichnerc avatar Oct 21 '22 15:10 Aichnerc