I am having trouble with this package ```@aws-cdk/...
# help
k
I am having trouble with this package
Copy code
@aws-cdk/aws-apigatewayv2-alpha
I get this error:
Copy code
✘ [ERROR] Could not resolve "@aws-cdk/aws-apigatewayv2-authorizers-alpha"

    stacks/AuthApiStack.js:3:33:
      3 │ import * as apigAuthorizers from "@aws-cdk/aws-apigatewayv2-authorizers-alpha";
        ╵                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@aws-cdk/aws-apigatewayv2-authorizers-alpha" as external to exclude it from
  the bundle, which will remove this error.

Build failed with 1 error:
stacks/AuthApiStack.js:3:33: ERROR: Could not resolve "@aws-cdk/aws-apigatewayv2-authorizers-alpha"
eventhough I ran
npm install aws-cdk@2.24.0 --save-exact
or
npm install aws-cdk
t
did you add
@aws-cdk/aws-apigatewayv2-authorizers-alpha
as part of your package.json?
k
no
t
can you try that to fix?
k
I have this
Copy code
"dependencies": {
    "aws-cdk": "2.24.0",
    "aws-sdk": "^2.1145.0",
    "serverless-stack": "^0.1.0",
    "uuid": "^8.3.2"
  }
t
hm is this an old project?
k
not at all
t
how did you come up with this?
serverless-stack
isn't a package we publish
I needed it to add google login
t
I meant where did you get your package.json from
k
the root
t
how did you bootstrap your project?
k
wdym 😅 "bootstrap my project"
I followed the tutorial for the notes app
t
how did you setup your project?
the package.json looks off in a few ways
k
with javascript
t
did you run
npm init sst
? I meant how did you setup your project more specifically
k
yes with javascript-starter
instead of typescript
t
something must have been done wrong because your package.json isn't something we generate
also recommend you use the typescript starter even if you don't know ts
If I run
npm init sst
my package.json looks like this
Copy code
{
  "name": "my-sst-app",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "sst start",
    "build": "sst build",
    "deploy": "sst deploy",
    "remove": "sst remove",
    "console": "sst console",
    "test": "vitest run"
  },
  "devDependencies": {
    "@serverless-stack/cli": "^1.2.15",
    "@serverless-stack/resources": "^1.2.15",
    "typescript": "^4.7.3",
    "@tsconfig/node16": "^1.0.2",
    "vitest": "^0.13.1"
  },
  "workspaces": [
    "backend"
  ]
}%
k
uhmm
mine does too
i just copy pasted the dependencies
t
yours doesn't look like this because it says
serverless-stack
which shouldn't be a thing anywhere
k
Copy code
{
  "name": "notes",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "sst start",
    "build": "sst build",
    "deploy": "sst deploy",
    "remove": "sst remove",
    "console": "sst console",
    "test": "vitest run"
  },
  "devDependencies": {
    "@serverless-stack/cli": "1.2.11",
    "@serverless-stack/resources": "1.2.11",
    "@tsconfig/node16": "^1.0.2",
    "typescript": "^4.7.2",
    "vitest": "^0.12.9"
  },
  "workspaces": [
    "backend"
  ],
  "dependencies": {
    "aws-sdk": "^2.1145.0",
    "serverless-stack": "^0.1.0",
    "uuid": "^8.3.2"
  }
}
ow
t
ok I think we have an issue in our starter because there should be some additional dev dependencies there
add
"@aws-cdk/aws-apigatewayv2-authorizers-alpha": "2.24.0"
and
"aws-cdk-lib": "2.24.0"
k
ok