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

Version 2.0.0-rc.1 fails to start #462

Closed AaronDewes closed 3 weeks ago

AaronDewes commented 3 weeks ago

Version

nuxt-security: 2.0.0-rc.1 nuxt: 3.11.2

Reproduction Link

Let me know if you need one, but this seems to affect all new installations.

Steps to reproduce

Use nuxt-security.

What is Expected?

It works

What is actually happening?


 ERROR  RollupError: Could not resolve "../../../defaultConfig" from "node_modules/nuxt-security/dist/runtime/server/middleware/requestSizeLimiter.mjs"                                                             nitro 19:09:26

This looks like a mistake in the build.

grafik

The extension is missing here, and the defaultConfig.mjs file does not seem to exist as part of the bundle.

vejja commented 3 weeks ago

@AaronDewes you're right, patching now

AaronDewes commented 3 weeks ago

Thank you!