Getting error:
These dependencies were not found:
nuxt02 |
nuxt02 | * @aws-sdk/client-dynamodb in ./middleware/checkForRedirect.js
nuxt02 | * @aws-sdk/lib-dynamodb in ./middleware/checkForRedirect.js
I have these dependencies installed in package.json:
Using nuxt version 2.0.0.
The node_modules folder has these libs installed:
The import statement (inside middleware): (from https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.ReadItem.html)
Why is the nuxt compiler throwing these errors?
Update: OK turns out the npm install on the docker container wasn't doing a full install (using cached info). That part is OK (libs found).
I have found someone with a similar issue here:Error when using s3-sync-client and @aws-sdk/client-s3 with webpack in Electron project
And I am using the accepted answer (they are not using Nuxt however!) to try and get this thing to build:
(does not work, still getting same error)