generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Description
When using function eject on inline function without dependencies the error appears about package.json
Simple inline function:
apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
name: f-status
spec:
runtime: nodejs20
resourceConfiguration:
function:
profile: XL
source:
inline:
source: |
module.exports = {
main: function(event, context) {
return 'Hello World!'
}
}Steps to reproduce
kyma function eject f-status -d=path
Error:
failed to call server
Error Details:
failed to get runtime files for function 'default/f-status': failed to merge package.json: failed to unmarshal source package.json: unexpected end of JSON inputMetadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.