Skip to content

TypeError: Configstore is not a constructor #142

@wisejayden

Description

@wisejayden

Following the ReadMe steps:

Import Content
Once authenticated, you'll be able to create a Sanity project and import content.
npm run create-project
Note: You may want to sign into Sanity in the browser and rename your project.

I get the following error:

(base) ➜  astro-sanity-starter git:(main) ✗ npm run create-project


> astro-sanity-starter@0.0.1 create-project
> node ./sanity-export/create-project.js

/Users/jayden/dev/astro-sanity-starter/sanity-export/create-project.js:6
const config = new Configstore('sanity', {}, { globalConfigPath: true });
               ^

TypeError: Configstore is not a constructor
    at Object.<anonymous> (/Users/jayden/dev/astro-sanity-starter/sanity-export/create-project.js:6:16)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object..js (node:internal/modules/cjs/loader:1698:10)
    at Module.load (node:internal/modules/cjs/loader:1303:32)
    at Function._load (node:internal/modules/cjs/loader:1117:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49

Node.js v23.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions