Skip to content

Commit

Permalink
Fix: changing import syntax slightly to ensure success with `create-n…
Browse files Browse the repository at this point in the history
…ext-app` (#28431)

Just a small change to recently merged PR; for some reason `import couchbase from 'couchbase'` is not working correctly when I use create-next-app to bootstrap with the `with-couchbase` example, despite initially working within my local next.js directory. The wildcard import fixes that issue. Thanks!

## Documentation / Examples

- [x] Make sure the linting passes
  • Loading branch information
ejscribner committed Aug 24, 2021
1 parent a143bc4 commit f78ebd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-couchbase/util/couchbase.js
@@ -1,4 +1,4 @@
import couchbase from 'couchbase'
import * as couchbase from 'couchbase'

const COUCHBASE_USER = process.env.COUCHBASE_USER
const COUCHBASE_PASSWORD = process.env.COUCHBASE_PASSWORD
Expand Down

0 comments on commit f78ebd0

Please sign in to comment.