[ERROR] Could not resolve "pg-native"
.yarn/__virtual__/pg-virtual-0334746519/0/cache/pg-npm-8.9.0-af609b947e-dfd1589553.zip/node_modules/pg/lib/native/client.js:4:21:
4 │ var Native = require('pg-native')
╵ ~~~~~~~~~~~
The Yarn Plug'n'Play manifest says this package has a peer dependency on "pg-native", but the
package "pg-native" has not been installed:
.pnp.cjs:3277:26:
3277 │ ["pg-native", null],\
╵ ~~~~
You can mark the path "pg-native" as external to exclude it from the bundle, which will remove
this error. You can also surround this "require" call with a try/catch block to handle this
failure at run-time instead of bundle-time.
.yarnrc.yml
packageExtensions:
...
pg@*:
dependencies:
pg-native: '*'
packageExtensions
에 pg
추가하기