-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Serverless Components CLI v1 is no longer bundled with Serverless Framework CLI #2320
Comments
Hm, seems some others faced this too, I think you could pin to an older version of [email protected] when deploying which will have the old beta serverless components in it and it should work? |
@dphang i tried with a older version but i have the same problem Serverless released a new version today and i think that the new version break the workflow because it separate the Component CLI from the Serverless Framework CLI |
Try this to deploy: |
@ferdingler Thanks, that work for now. |
Glad that I looked at recent issues created on the Repo. |
Same issue here! |
Is there a long term solution for this? Has anyone tried the recommendation in the serverless message? I wasn't sure what to put for |
Same here:
It asks to do this:
When I try to use |
How @ferdingler says, we have to specify the serverless version in the console, specifically a version before of 3.0. We have to await for someone of the contributors release a new version or somebody is free to submit a pull request with a modification in the serverless version while the integrations with serverless@3 is ready |
I got the same problem. I ran
Running I'm not sure if/how is all this relevant, but I do hope it helps! |
As a temporary fix, I just installed serverless locally on a version older than 3.0.0 which has breaking changes. And apparently things started working again...
|
I have this same issue, is there a resolution to this? |
Same here |
So the main serverless repo upgraded to v3 with breaking changes, there is a blog post on it. I had the deployment as part of my ci flow and changed |
thanks @ferdingler . That work for now. |
So is Serverless versions >=3 messed up for Next deployments? I use Aws Amplify to deploy and I hijack the serverless config with my own, it seems that deploying a Next app with just Next as a dependency works fine, however, if you start adding things like Sentry, Next/MDX then it throws the vercel/NFT/license error and fails to build. Is the current solution to use |
@Rafcin Yes, currently the unique workaround is install [email protected] as a dev dependecy |
I'm just modified my config to use 2.72.2 so I'll see if it builds, I wonder if this has been the issue the whole time! I could never deploy with 12 and I always thought something with Next v >=12 or some of those packages caused these issues. |
Now that AWS has cutoff support for the |
We fixed the lambda states issue by upgrading Serverless Next from 1.18 to 3.6.0 in the serverless.yml file. |
Thank you a ton for this @uclaeamsavino , this workaround is also functioning for us now. |
- serverless.ymlの追加 - [email protected]をインストール `yarn serverless`でawsへデプロイ可能 3系ではエラーがでて進めないので旧バーションを指定している serverless-nextjs/serverless-next.js#2320 - また、.serverless/.serverless_nextjsをgitignoreに追加した。 FYI: serverless-nextjs/serverless-next.js#415
I have the same issue and below commands worked for me, as recommended.
|
Soluction:
5.2 remove for aws
|
@janklan have you solved your issue with sentry and serverless? i'm having this too |
When is this expected to be fixed? Is it an issue of Serverless of the Next component? Because according to the Serverless Components README Also, installing the CLI locally and using the Again, not sure where is the problem, whereever it is, if it's a bug I totally get it, but if it's a result of an intended separation of the framework from the CLI as I understand from the error message then IMHO it wasn't thought thoroughly and should be rolled back and done in an "API first" approach. Thanks for all the hard work everyone is putting in it! |
Install the cli using, npm install -g @serverless/cli and then run components-v1 |
I'm also wondering what the path forward here would be? my way to go was the following:
|
@martinjuhasz thanks for sharing. I couldn't get anything to work. |
Hey all, I am sorry for the lack of activity recently…honestly I got busy with other personal interests and was having trouble with finding other long-term maintainers. For fully visibility, Yes currently this library has to use that specific old version of Serverless components since it’s still on the beta components, and there is definitely a lot of tech debt from this (the original maintainer started this library when it was still in beta and it wasn’t upgraded). At a previous time I had looked into it but IIRC the GA components had some major incompatibilities with (I think it was something to do with needing to have custom build or deploy logic which at the time wasn’t compatible with GA components doing builds/deploys in the Serverless cloud?). But it might definitely have changed now since that was a while ago. Long term we definitely should upgrade, although an equally viable path is to use things like CDK or Terraform CDK to deploy (eg there are solutions like Serverless Stack that are well-funded that use AWS CDK this way - perhaps we can explore more collaboration with them), which we have as deployers for lambda@edge and lambda (more diy), or try to get out of maintaining AWS deploy logic if possible. There is a budget for Serverless components upgrade ($1000) and more general funds (to the tune of around $1100), so if anyone is seriously interested to work on this, please join the slack (send an email to [email protected] for an invite) and it may be worth your while as there are decent financial incentives which we can work out depending on how much time you want to spend. I currently don’t need the money myself and my time is quite limited these days, so I’m hoping for other core contributors… there are also other long term things to fix such as how to better keep up with feature parity with Next.js (for example, running Next.js server instead of emulating the routing logic ourselves) so we don’t have constant bugs due to differing behavior. And of course other projects like bringing it to Azure/GCP etc (but I would prefer making this more stable first) Thanks for reading. |
Still having the issue: [email protected], @serverless/[email protected] |
This worked for me:
Then every time you want to deploy:
|
Is there an npx serverless@... option for Next.js version 12.3.1? The version -- Edit -- |
Issue Summary
When i try to deploy an app then i receive the next message:
and the app is not deployed
Actual behavior
The process end with that message
Expected behavior
Tha app is deployed
Steps to reproduce
Try to deploy a app with @sls-next/[email protected]
Screenshots/Code/Configuration/Logs
Versions
Additional context
Checklist
latest
oralpha
@sls-next/serverless-component
release version, which may have already fixed your issue or implemented the feature you are trying to use. Note that the oldserverless-next.js
component and theserverless-next.js
plugin are deprecated and no longer maintained.The text was updated successfully, but these errors were encountered: