Having some issues deploying a serverless stack to...
# help
t
Having some issues deploying a serverless stack to AWS from Seed, that is working fine is deployed directly from workstation.
Using node v14.17.3 (and GP v4.0) - specified in
Seed.yml
r
Can you share what the issue is or any error messages?
t
Copy code
ERROR: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /tmp/seed/source/node_modules/@graphql-codegen/visitor-plugin-common/node_modules/get-intrinsic/package.json
Starting from a clean local env (i.e. removed
node_modules
and re-ran
yarn
).
Then running
sls deploy -s $STAGE
is successful from my command line (MacOS).
But, if I trigger a build/deploy via Seed console, it fails with that error.
And it gets worse… Using this command line locally:
Copy code
STAGE=devint01 AWS_SDK_LOAD_CONFIG=true AWS_PROFILE=devint01-profile SLS_DEBUG=* serverless package --stage=devint01 --package sls-package-output
I get this error:
Copy code
Serverless: Invoke webpack:validate
Serverless: Invoke webpack:compile
Serverless: Bundling with Webpack...
Starting type checking service...
Using 1 worker with 2048MB memory limit
internal/modules/cjs/loader.js:967
  throw err;
  ^

Error: Cannot find module '/Volumes/BoggisData-1/loanpal/lp-platform/service/partner/--max-old-space-size=2048'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:964:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
    at Function.Module._load (internal/modules/cjs/loader.js:840:27)
    at Function.Module.runMain (pkg/prelude/bootstrap.js:1375:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
f
Hey @Tony Boggis, can you DM me a link to the build on SEED?