You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting an undocumented expectation for strictNullChecks to be false.
[ ] Regression
[x] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
After creating a new nest project and setting up azure-database with the default setup and following the azure-database documentation, we run into the following error:
src/contact/contact.service.ts:9:6 - error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.
9 @InjectRepository(Contact)
~~~~~~~~~~~~~~~~~~~~~~~~~
When updating the tsconfig.json to strictNullChecks to false, the samples work now.
Expected behavior
Either the documentation should state that strictNullChecks must be set to false, or preferably the library should work with strictNullChecks set to true.
Minimal reproduction of the problem with instructions
Creating a new nest project and setting up azure-database with the default setup.
$ npm i -g @nestjs/cli
$ nest new project-name
$ cd project-name/
$ npm i --save @nestjs/azure-database
Then set up the sample following the documentation.
What is the motivation / use case for changing the behavior?
It took a while to figure out the null checks were the issue.
I'm submitting an undocumented expectation for
strictNullChecks
to befalse
.Current behavior
After creating a new nest project and setting up
azure-database
with the default setup and following theazure-database
documentation, we run into the following error:This line seems to throw an error:
When updating the tsconfig.json to
strictNullChecks
tofalse
, the samples work now.Expected behavior
Either the documentation should state that
strictNullChecks
must be set tofalse
, or preferably the library should work withstrictNullChecks
set totrue
.Minimal reproduction of the problem with instructions
Creating a new nest project and setting up
azure-database
with the default setup.$ npm i -g @nestjs/cli $ nest new project-name $ cd project-name/ $ npm i --save @nestjs/azure-database
Then set up the sample following the documentation.
What is the motivation / use case for changing the behavior?
It took a while to figure out the null checks were the issue.
Environment
default nest tsconfig.json:
The text was updated successfully, but these errors were encountered: