help wantedstatus:todotype:bug
Descrizione
Summary:
When I try to export a Model, I get the following error:
The inferred type of 'CatModel' cannot be named without a reference to '../lib/nodejs/node_modules/dynamoose/dist/General'. This is likely not portable. A type annotation is necessary.
Code sample:
Model
export const CatModel = dynamoose.model("Cat", {"id": Number, "name": String});
General
Current output and behavior (including stack trace):
Expected output and behavior:
Environment:
Operating System: osx
Operating System Version: 11.4
Node.js version (node -v): v14.17.0
NPM version: (npm -v): 6.14.13
Dynamoose version: v2.7.3
Other information (if applicable):
Other:
- I have read through the Dynamoose documentation before posting this issue
- I have searched through the GitHub issues (including closed issues) and pull requests to ensure this issue has not already been raised before
- I have searched the internet and Stack Overflow to ensure this issue hasn't been raised or answered before
- I have tested the code provided and am confident it doesn't work as intended
- I have filled out all fields above
- I am running the latest version of Dynamoose