3

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.

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.