Why does this work:
import pg from 'pg'; const { Client } = pg;
and this doesn't:
import { Client } from 'pg'
When I try:
import { Client } from 'pg'
I get this error:
Why does this work:
import pg from 'pg'; const { Client } = pg;
and this doesn't:
import { Client } from 'pg'
When I try:
import { Client } from 'pg'
I get this error: