-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helmet()
is not a function
#348
Comments
Sorry you're running into this. What does your |
I have the same error. I use Nestjs 8.2.5 with this
|
In the short term, you can do one of the following:
In the long term, I'll look into what's causing this. I suspect it will be fixed in an upcoming version (see #345), but I have been busy with other things and haven't had time to look yet. Apologies! |
Thank you for your fast solution! That works fine for me! And sorry for the duplication of #344 |
mine looks like this: {
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false
}
} I recently added |
These solutions worked for me with helmet
Tried using |
This should be fixed in an upcoming version. Please stay tuned! |
I just released |
Upgraded and tested, so far so good. Thanks! |
I'm currently using Nest.js 8.1.5.
I have tested helmet
4.6.0
and5.0.1
with the same results.This is my server file:
When I try to run it, it prints this to console.
The text was updated successfully, but these errors were encountered: