Skip to content
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

[BUG] Error: ENOENT: no such file or directory #205

Open
taynaraMarcondes opened this issue May 11, 2024 · 0 comments
Open

[BUG] Error: ENOENT: no such file or directory #205

taynaraMarcondes opened this issue May 11, 2024 · 0 comments
Labels

Comments

@taynaraMarcondes
Copy link

Describe the bug
I am using the @decorators/server in my repo and I got this issue when using swagger.

To Reproduce
Just install the decorator and enable swagger on your app module:
SwaggerModule.forRoot({ description: 'Rifas Example App', title: '@decorators/server', }),

Expected behavior
No errors

The solution
The file swagger-dark.css wasn`t added to node_modules to fix this just do it:

npm install --save-dev copyfiles

and substitute the build script in package.json file:

"build": "rimraf ./lib && tsc && copyfiles -u 1 ./src/platforms/swagger/**/*.css ./lib"

I tried making a pull request, but I don't have the permission to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant