From f78ebd089583de485cbffd253a67ab3dbdd2a088 Mon Sep 17 00:00:00 2001 From: Elliot Scribner Date: Tue, 24 Aug 2021 09:48:28 -0700 Subject: [PATCH] Fix: changing import syntax slightly to ensure success with `create-next-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 --- examples/with-couchbase/util/couchbase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-couchbase/util/couchbase.js b/examples/with-couchbase/util/couchbase.js index 968bb9c461d6407..f1a683cd767071e 100644 --- a/examples/with-couchbase/util/couchbase.js +++ b/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