validate-vat
validate-vat copied to clipboard
Can't resolve 'https' in '..\node_modules\validate-vat\lib'
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?
Same issue here. I'm using react 17.
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.