I start my app with
yarn nx serve my-api
There is an error in the build of an unknown origin that is being obfuscated by node. The console output says "Use node --trace-warnings ...
to show where the warning was created". How do I run yarn nx serve
in conjunction with --trace-warnings
? I want to get the stack trace so that I can find my error.
node --trace-warnings node_modules/.bin/nx serve my-api
或者,您可以在您的应用程序中包含此代码:
process.on('warning', e => console.warn(e.stack));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.