Nest can't resolve dependencies of the (?) - nestjs

[Nest] 10634 - 2022/09/29 下午5:38:25 [ExceptionHandler] Nest can't resolve dependencies of the UserInfoService (?). Please make sure that the argument UserInfoEntityRepository at index [0] is available in the WashCarModule context.
I do not know what is the wrong whit my code, please help me,Thank you!
The directory structure
enter image description here
enter image description here
enter image description here
enter image description here
enter image description here
enter image description here

In your WashCarModule, you are missing the TypeOrmModule.forFeature([UserInfoEntity]) import. This import makes it possible to use #InjectRepository(UserInfoEntity) as is mentioned in the docs

Related

How do I get my Nodejs .env file recognized?

Well I started to learn how to create api rest
and when I want to call it in the proccess.env it doesn't recognize it.
I already have dotenv installed
this is how my .env file looks like
this is the error, I have tried with other ports but I get the same error .
my package.json
I also tried following:
require('dotenv').config({path: '../.env'});
require('dotenv').config({path: '../../.env'});
and all I get is this
enter image description here
I hope I made myself understood, I tried to search on yt but found no answer. Thank you for your time
You do not need to write it like that, you can just use it like this
import * as dotenv from 'dotenv'
dotenv.config()
this is possible because the default path is your root folder.
Also, you are supposed to put it in your root folder as it is stated by the creators, you can read it here.
However if you really want to use it in another directory, you can read through solution on this question.

I want to apply ctc loss function , i have written the code but I am having this error: Exception encountered when calling layer "ctc" (type Lambda)

enter image description here
I have written the code promptly, the error says to add lambda but as you can see it is already in the main code. It would be really helpful if anyone provided a solution with proper description of why the error happened. Thank You...

ExcelJs - SaxesParser error: duplicate attribute

I'm trying to open a workbook with exceljs and get the following error:
Error: 162:67: duplicate attribute: o:relid.
at SaxesParser.makeError (C:\Users\tiedemann\Development\mbes32-events\node_modules\saxes\saxes.js:410:16)
at SaxesParser.fail (C:\Users\tiedemann\Development\mbes32-events\node_modules\saxes\saxes.js:422:26)
at SaxesParser.processAttribsPlain (C:\Users\tiedemann\Development\mbes32-events\node_modules\saxes\saxes.js:1944:22)
at SaxesParser.openSelfClosingTag (C:\Users\tiedemann\Development\mbes32-events\node_modules\saxes\saxes.js:1976:14)
at SaxesParser.sOpenTagSlash (C:\Users\tiedemann\Development\mbes32-events\node_modules\saxes\saxes.js:1432:18)
at SaxesParser.write (C:\Users\tiedemann\Development\mbes32-events\node_modules\saxes\saxes.js:481:36)
at module.exports (C:\Users\tiedemann\Development\mbes32-events\node_modules\exceljs\lib\utils\parse-sax.js:21:17)
at async VmlNotesXform.parse (C:\Users\tiedemann\Development\mbes32-events\node_modules\exceljs\lib\xlsx\xform\base-xform.js:60:22)
I really tried hard to find any informations on that error. But can't make sense out of the informations google give me. Could anyone of you give me a hint what is wrong here?
I guess it has something todo with the xml. But I can't figure out what exactly todo or change in my file.
Please help!
Thanks.
I found the error. In the file was a circular reference in one of the cells. After removing the formular from that cell and saving the workbbok again. The error disappered. Wished the error message were more helpful in advance.

MODULE_DOES_NOT_EXIST SuiteScript even after i have added ".js"

I am having some issue for the SuiteScript while trying to create a new one. I followed other answers to add ".js" at the end of the script file name, but the error still showing:
enter image description here
enter image description here
enter image description here
Is there any other ways to solve the problem?
This is the error:
Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: /SuiteScripts/TF_LIB_MassDeletionScript2.0.js","stack":[]}
Looks like the error is telling you that a module referenced in the script file you are trying to upload cannot be found. Don't forget that the system parses your script file when you try to upload it, so if there are syntax errors or other problems, the file cannot be uploaded. Make sure that the TF_LIB_MassDeletionScript2.0.js file is in the SuiteScripts folder before you try to upload your YY_Script.js file.
Ironically, you need to exclude the file extension in the TF_LIB_MassDeletionScript2.0 module relative reference. (just the reference, not the module file name)
Also, a "." in a relative reference tells the compiler to go back a level, so you probably need to rename your module file to something like TF_LIB_MassDeletionScript2_0 and update the reference

How to fix "TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object."

I start getting this error for some reason and can't figure out why and how to solve it. I'm getting the following error message:
I'm using John Papa's Hottowel Generator, and when I'm trying to run gulp build or gulp serve-dev, I get this error. I already tried to update wiredep, vinyl-fs and readable-stream packages to latest versions, but it didn't solve the problem.
Can anyone please help me to find the source of the error and solve it?
Thanks in advance. And if you need to see some code, please, let me know what part do you need.

Resources