serverless / serverless/serverless

Got an Error with nodejs18 and serverless 3.26.0

Open
#11,682 1 comment 0 reactions 1 assignee View on GitHub

@MingZhong-integration is already working on this.

Since Jan 16, 2023.

question
Dominant language
JavaScript
Stars
46.9k
Forks
5.7k
Avg merge
10h 7m
Merged PRs (30d)
57

Description

Are you certain it's a bug?
  • Yes, it looks like a bug
Is the issue caused by a plugin?
  • It is not a plugin issue
Are you using the latest v3 release?
  • Yes, I'm using the latest v3 release
Is there an existing issue for this?
  • I have searched existing issues, it hasn't been reported yet
Issue description

start serverless offline and got the below error with nodejs18.x runtime.

@integrations: Environment: darwin, node 18.13.0, framework 3.26.0 (local), plugin 6.2.2, SDK 4.3.2
@integrations: Docs: docs.serverless.com
@integrations: Support: forum.serverless.com
@integrations: Bugs: github.com/serverless/serverless/issues
@integrations: Error:
@integrations: Service configuration is expected to be placed in a root of a service (working directory). All paths, function handlers in a configuration are resolved against service directory.

Service configuration (serverless.yml) content
N/A
Command name and used flags

serverless offline --config xx.yml

Command output
N/A
Environment information
9.2.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.