Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No detail webpack error when bundling or deploying #327

Open
Cyberuben opened this issue Aug 27, 2022 · 1 comment
Open

No detail webpack error when bundling or deploying #327

Cyberuben opened this issue Aug 27, 2022 · 1 comment

Comments

@Cyberuben
Copy link

Cyberuben commented Aug 27, 2022

Hi,

I'm getting the following output when trying to package or deploy my project. sls offline works fine, which uses the same config.

Since there's no error, I have no idea how to further debug this.

sls package --config serverless.yml --stage dev --verbose
Running "serverless" from node_modules
Warning: Configured "frameworkVersion" does not represent a valid semver version range, version validation is skipped
serverless-offline-ssm checking serverless version 3.19.0.

Warning: Invalid configuration encountered
  at 'custom.warmup.enabled': must be object
  at 'custom.warmup.events': must be object
  at 'custom.warmup.prewarm': must be object
  at 'custom.warmup.concurrency': must be object

Learn more about configuration validation here: http://slss.io/configuration-validation

Packaging fragile for stage dev (us-east-1)

Packaging
WarmUp: Skipping warmer "enabled" creation. No functions to warm up.
WarmUp: Skipping warmer "events" creation. No functions to warm up.
WarmUp: Skipping warmer "prewarm" creation. No functions to warm up.
WarmUp: Skipping warmer "concurrency" creation. No functions to warm up.
WarmUp: Skipping warmer "enabled" creation. No functions to warm up.
WarmUp: Skipping warmer "events" creation. No functions to warm up.
WarmUp: Skipping warmer "prewarm" creation. No functions to warm up.
WarmUp: Skipping warmer "concurrency" creation. No functions to warm up.
Using configuration:
{
  "packager": "npm",
  "concurrency": 3,
  "packagerOptions": {},
  "webpackConfig": "node_modules/serverless-bundle/src/webpack.config.js",
  "includeModules": {
    "forceExclude": [
      "aws-sdk"
    ],
    "forceInclude": null,
    "packagePath": "package.json"
  },
  "excludeRegex": {},
  "keepOutputDirectory": false
}
serverless-bundle: CommonJS, ES3, or ES5 are not supported
Removing /Users/ruben/Projects/<project>/api/.webpack
Individually packaging with concurrency at 3 entries a time.
Bundling with Webpack...
Environment: darwin, node 16.13.1, framework 3.19.0 (local) 3.18.2v (global), plugin 6.2.2, SDK 4.3.2
Credentials: Serverless Dashboard, "<provider>" provider (https://app.serverless.com/<username>/apps/<app>/<app>/dev/us-east-1/providers)
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Webpack compilation errors, see stats above

3 deprecations found: run 'serverless doctor' for more details

There don't seem to be any build errors when running typescript individually.

Is there any way to get a more verbose error?

This did not happen when using serverless-webpack

@Jackman3005
Copy link

I know this is an older issue, but if others come by it. I recently found out it may be based on errors caused by differing Typescript versions between what you use in your project and the built-in version supplied by serverless-bundle. See the Typescript 5.0 Support issue for more detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants