resolve icon indicating copy to clipboard operation
resolve copied to clipboard

Runtime.HandlerNotFound: cloud-entry.default is undefined or not exported

Open krutilin opened this issue 3 years ago • 0 comments

Describe the bug Error on app deploy

start deploying the "shopping-list1" application to the cloud                                                                                   17:55:37

 ERROR  Runtime.HandlerNotFound: cloud-entry.default is undefined or not exported                                                               17:57:20
    at Object.module.exports.load (/var/runtime/UserFunction.js:144:11)
    at Object.<anonymous> (/var/runtime/index.js:43:30)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47

error Command failed with exit code 1.

To Reproduce Use shopping-list example and modify config.cloud.js

const cloudConfig = {
  mode: 'production',
  runtime: {
    module: '@resolve-js/runtime-aws-serverless',
  },

and deploy. We need more information about importMode option, and why there is no default?

options: { importMode: 'dynamic' },
  • ReSolve Version [e.g. 0.33.0]

krutilin avatar Nov 08 '21 15:11 krutilin