Comments (7)
The actual stack trace is a little different. Maybe this will help:
─ node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module '/opt/sls-sdk-node'
Require stack:
- internal/preload
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at internalRequire (node:internal/modules/cjs/loader:175:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1582:5)
at loadPreloadModules (node:internal/process/pre_execution:731:5)
at setupUserModules (node:internal/process/pre_execution:172:3)
at prepareExecution (node:internal/process/pre_execution:132:5)
at prepareMainThreadExecution (node:internal/process/pre_execution:55:10)
at node:internal/main/run_main_module:11:19 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
}
Node.js v20.10.0
← λ api
from serverless.
i am getting the exact same error
from serverless.
Same here
from serverless.
There is a conflict with dev mode in V4 and our observability product. We are working on a fix. ETA is ~1.5 days.
from serverless.
Fixed in https://github.com/serverless/serverless/releases/tag/v4.0.34
from serverless.
Just installed serverless v4 npm i -g serverless
and am getting this same error. Performed a serverless update
to get the latest 4.1.4
Does this require 4.0.34, or is the fix also in 4.1.4?
Thank you
Context:
Service Overview
- Serverless Framework Version: 4.1.4
- Service Config File: serverless.yml
- Service Name: mc-serverless
- Service App: mc-serverless
- Service Runtime: nodejs20.x
- Service Stage: dev
- Service Region: us-east-1
- Command: dev --stage dev
Service Path
...
Service Config
org: ...
app: ...
service: ...
plugins:
- serverless-domain-manager
custom:
customDomain:
domainName: 'api-${sls:stage}...'
certificateName: '...'
basePath: ''
stage: ${sls:stage}
autoDomain: true
createRoute53Record: true
endpointType: regional
apiType: http
x_allowPathMatching: true # Only for one deploy
provider:
name: aws
deploymentMethod: direct
architecture: arm64
runtime: nodejs20.x
iam:
role:
statements:
...
environment:
RUN_STAGE: ${sls:stage}
functions:
api:
handler: index.handler
memorySize: 1024
events:
- httpApi: '*'
from serverless.
@lorenwest Should be fixed. But if you saw this in 4.1.4
we better give it another look. @eahefnawy could you check this out pls?
from serverless.
Related Issues (20)
- Documentation is not updated about the v3 HOT 1
- Encountering "Internal Serverless Error" in commands HOT 3
- Menu Overlap Issue in Documentation HOT 2
- Custom resource deployment hangs forever HOT 4
- Show helpful errors when the build type (e.g. `esbuild`) is missing in the `build` section
- `sls info -v` not showing stack outputs HOT 2
- Cannot parse 'serverless.ts' after upgrading to v4 HOT 4
- Missing Package @serverlessinc/sf-core HOT 1
- V4.1.0: Error fetching release: EACCES: permission denied, open /usr/local/lib/node_modules/serverless/node_modules/.bin/serverless-darwin-amd64-0.0.2 HOT 3
- Serverless 4.x doesn't seem to update or work HOT 7
- sls deploy issue HOT 1
- Make inputTransformers and inputPath available when CfnRule target is event bus HOT 1
- No forceInclude equivalent in the new build.esbuild configuration HOT 7
- Invalid option in build call buildConcurrency HOT 1
- Parsing issue around build.esbuild.exclude and build.esbuild.external HOT 1
- Dev command does not work when custom IAM role set HOT 1
- AWS SSO doesn't seem to work with SERVERLESS_LICENSE_KEY HOT 2
- [windows][v4] serverless invoke local is failing to load handlers HOT 1
- Params top-level property is not loading when defined in a file HOT 1
- Detected unrecognized CLI options: "--d".
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless.