Baroshem / nuxt-security

🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware
https://nuxt-security.vercel.app/
MIT License
737 stars 56 forks source link

Install module with the nuxi module add command trigger a warning #436

Closed damevin closed 1 month ago

damevin commented 2 months ago

Version

nuxt-security: 1.3.0 nuxt: 3.10.0

Steps to reproduce

Install the nuxt module with the command npx nuxi@latest module add security

This warning message should appears

[WARN]t seems that security is not a Nuxt module.
✔ Do you want to continue installing `security` anyway?

What is Expected?

This message should not appears, i think it's introduced by this MR

Baroshem commented 2 months ago

This is an interesting issue because I have just tried the command in my hello world nuxt app and this is the result:

image

@vejja could you try it?

vejja commented 2 months ago

Same as you @Baroshem - It works correctly on my side using security and not nuxt-security

Baroshem commented 2 months ago

@danielroe do you have any idea why @damevin can experience such result? Is it due to the version of some dependencies maybe?

maxdzin commented 2 months ago

@Baroshem same, works with security, as stated above, and with v1.4.2 paths are resolved correctly, so no more errors.

damevin commented 1 month ago

Ok that's very weird 😅 When I retry it works now... i'm sorry

Baroshem commented 1 month ago

@damevin

No worries buddy! Thanks for retesting!

Happy Coding :)