Giter VIP home page Giter VIP logo

Comments (12)

zdziczkowski avatar zdziczkowski commented on May 28, 2024 2

We just bumped into this same problem when upgrading the Serverless Framework to v3 (previously v2). When we comment out serverless-sentry from the plugins section of our serverless.yml, we are able to successfully run sls package as before.

Here are the versions we are running:

  • Node: v17.4.0
  • Serverless Version: Framework Core: 3.3.0 (local) 3.0.0 (global)
  • serverless-sentry-lib Version: ^2.4.0
  • @sentrey/node Version: ^6.16.0

When attempting to run sls package..., we get the following error message:

Error:
At least one of the plugins defines a validation schema that is invalid. Try disabling plugins one by one to identify the problematic plugin and report it to the plugin maintainers.

1 deprecation found: run 'serverless doctor' for more details
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

If we run sls doctor as directed, we get the following instructions:

Running "serverless" from node_modules
1 deprecation triggered in the last command:

CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:

  • ServerlessOffline for "apiKey", "corsAllowHeaders", "corsAllowOrigin", "corsDisallowCredentials", "corsExposedHeaders", "disableCookieValidation", "enforceSecureCookies", "hideStackTraces", "host", "httpPort", "httpsProtocol", "lambdaPort", "noPrependStageInUrl", "noAuth", "ignoreJWTSignature", "noTimeout", "prefix", "printOutput", "resourceRoutes", "useChildProcesses", "useWorkerThreads", "websocketPort", "webSocketHardTimeout", "webSocketIdleTimeout", "useDocker", "layersDir", "dockerReadOnly", "functionCleanupIdleTimeSeconds", "allowCache", "dockerHost", "dockerHostServicePath", "dockerNetwork"
    Please report this issue in plugin issue tracker.
    Starting with next major release, this will be communicated with a thrown error.
    More info: https://serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA_V3

I am exploring disabling the deprecations from the new v3 schema and will update if a workaround solution is found.

from serverless-sentry-plugin.

pierot avatar pierot commented on May 28, 2024 2

Yep could do with some assistance on this too. I'm on serverless 3.11.0, node 14 and sentry plugin 2.4.0. This is the only thing that's stopping me using sls 3 now. Not sure how I can work around it, I need sentry.

You could use this guide to set up Sentry. Works perfectly. You might miss on some feature the plugin provided. But for basic error logging it has all the features you might need.

from serverless-sentry-plugin.

dominik-meissner avatar dominik-meissner commented on May 28, 2024 1

@DonaldoLog thanks a lot for your work!
@arabold it would be great if you release this one and we can go ahead with serverless v3

from serverless-sentry-plugin.

davidjung1977 avatar davidjung1977 commented on May 28, 2024

Anything new here? I have the same issue.

from serverless-sentry-plugin.

pomelo-rich avatar pomelo-rich commented on May 28, 2024

Yep could do with some assistance on this too. I'm on serverless 3.11.0, node 14 and sentry plugin 2.4.0. This is the only thing that's stopping me using sls 3 now. Not sure how I can work around it, I need sentry.

from serverless-sentry-plugin.

Udit-K avatar Udit-K commented on May 28, 2024

Same error. Dependencies I have -
serverless - 3.11.0
serverless-sentry - 2.4.0
serverless-sentry-lib - 2.4.0
serverless-sentry-lib - 2.4.0
@sentry/node - 6.19.6

Thank you @pierot for the quickfix. This should do the trick for now but hopefully we see this being addressed in near future.

from serverless-sentry-plugin.

neslihankara avatar neslihankara commented on May 28, 2024

Having the same issue here. Could anyone with a workaround please share it with us? 👀

from serverless-sentry-plugin.

DonaldoLog avatar DonaldoLog commented on May 28, 2024

you could use
npm i --save-dev arabold/serverless-sentry-plugin#pull/56/head
while the PR is checked

from serverless-sentry-plugin.

Gemineye avatar Gemineye commented on May 28, 2024

Any news here?

from serverless-sentry-plugin.

arabold avatar arabold commented on May 28, 2024

I've merged in the fix by @DonaldoLog and added another feature by @jonmast to upload source maps.

from serverless-sentry-plugin.

Gemineye avatar Gemineye commented on May 28, 2024

@arabold npm still shows 2.4.0. Do you have to publish it?

from serverless-sentry-plugin.

arabold avatar arabold commented on May 28, 2024

You're right. The publish aborted without me noticing. Sorry for that.

from serverless-sentry-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.