Wyatt Goettsch
06/24/2022, 12:25 AMnpm start
import { Api, Table } from "@serverless-stack/resources";
^^^
SyntaxError: Named export 'Api' not found. The requested module '@serverless-stack/resources' 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 '@serverless-stack/resources';
const { Api, Table } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at asyncmanitej
06/24/2022, 12:27 AMWyatt Goettsch
06/24/2022, 12:28 AMWyatt Goettsch
06/24/2022, 12:41 AMimport pkg from '@serverless-stack/resources';
const { Api, Table } = pkg;
and it workedWyatt Goettsch
06/24/2022, 12:44 AMTypeError: app.setDefaultFunctionProps is not a function
at Module.defaultWyatt Goettsch
06/24/2022, 12:47 AMmanitej
06/24/2022, 12:50 AMmanitej
06/24/2022, 12:50 AMWyatt Goettsch
06/24/2022, 1:21 AMWyatt Goettsch
06/24/2022, 1:24 AMWyatt Goettsch
06/24/2022, 1:34 AMWyatt Goettsch
06/24/2022, 4:18 AM