Still broken: I can’t run `sst start`: ```Error [...
# help
s
Still broken: I can’t run `sst start`:
Copy code
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './core' is not defined by "exports" in /Volumes/SuperData/Sites/reelcrafter/v2-microservices/node_modules/aws-cdk-lib/package.json
FIXED!: is there any reason this syntax is invalid? I followed the instructions in the 0.57.0 update to alter how
HttpUserPoolAuthorizer
is used.
r
Are you importing HttpUserPoolAuthorizer from the right package?
Copy code
import { HttpUserPoolAuthorizer } from '@aws-cdk/aws-apigatewayv2-authorizers-alpha';
s
yep
hmm, can’t run
sst start
either.
Copy code
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './core' is not defined by "exports" in /Volumes/SuperData/Sites/reelcrafter/v2-microservices/node_modules/aws-cdk-lib/package.json
r
clear out node_modules and package-lock ?
s
yeah, did that
man, I have to stay on top of updates!
actually no, I didn’t remove yarn.lock. lemme try that along w/ node_modules again
fixed the authorizer issue. version mismatch between npm packages, easy
still can’t get past the
ERR_PACKAGE_PATH_NOT_EXPORTED
error 😕
lemme rule this out as being a yarn vs npm issue
nope, npm makes no difference either. I don’t get it.
aws-cdk-lib
lists
@aws-cdk/core
as a dev dependency, but it’s not installed
@Uncharted how did you fix this issue?
u
ah it was an import that was not replaced correcly
s
you were importing
@aws-cdk/core
?
u
more like : aws-cdk-lib/core
s
oh!
I do have that.. woops.
Copy code
import { Duration } from 'aws-cdk-lib/core';
where else should I import
Duration
from?
RemovalPolicy
also exists in
aws-cdk-lib/core
u
just aws-cdk-lib
r
Copy code
import { Duration } from 'aws-cdk-lib';
s
ah! lemme try that
thanks guys. I missed that one step 😅 there was a lot to change in 0.59.0
r
Glad you're sorted, it's a bit fiddly, no doubt