Hi, I’ve got a new SST app and the initial seed bu...
# seed
j
Hi, I’ve got a new SST app and the initial seed builds are failing with this error
Copy code
$ npx sst build --stage dev --verbose
file:///tmp/seed/source/node_modules/@serverless-stack/core/dist/pothos/generate.js:5
import { printSchema, lexicographicSortSchema } from "graphql";
         ^^^^^^^^^^^
SyntaxError: Named export 'printSchema' not found. The requested module 'graphql' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'graphql';
const { printSchema, lexicographicSortSchema } = pkg;
    at ModuleJob._instantiate (internal/modules/esm/module_job.js:104:21)
    at async ModuleJob.run (internal/modules/esm/module_job.js:149:5)
    at async Loader.import (internal/modules/esm/loader.js:166:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5)
ERROR: There was an error synthesizing your app.
running
npx sst update v1.2.20
fixed my issue!
f
Ah nice, glad it’s working!