I just installed node.js v14. When I built a Angular 9 package, I get these warnings.
ng build –prod myPackage
(node:14432) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:14432) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
I wonder how I can use node –trace-warnings to find where is the error thrown.
I am using Angular 9.
As one of the possible options you can correct your package.json in the following way:
{
"scripts": {
"build": "node --trace-warnings ./node_modules/@angular/cli/bin/ng build –prod myPackage"
}
}
See also this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With