I want to import the node.js url module (the native) but i keep getting errors on the browser.
This is how im importing:
import * as url from 'url';
This is the error that i get when trying to use some of the package classes:
url__WEBPACK_IMPORTED_MODULE_3__.URLSearchParams is not a constructor
Im also getting the "url" constant as undefined.
as far as i know Angular CLI uses webpack which should import without any problem the package, but it doesn`t
Comments
Post a Comment