Global Options Not Working in Nrwl
See original GitHub issueGlobal options defined in main.ts of a brand new NestJS project (inside Nrwl NX) don’t seem to be taking affect. Perhaps this is because of Nrwl NX somehow?
My nestjs main.ts file looks like so
// NestJSX Global Crud Config must be BEFORE you import AppModule
import { CrudConfigService } from '@nestjsx/crud';
CrudConfigService.load({
query: {
limit: 2,
},
});
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app/app.module';
import { config } from './config';
import { FusionAuthGuard } from '@sun/auth/nest/guards/fusionauth.guard';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
async function bootstrap() {
// Create our nest application
const app = await NestFactory.create(AppModule);
etc...
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Nx: Smart, Fast and Extensible Build System
Nothing is faster than not running a task. Nx analyzes your project graph and can diff it against a baseline to determine which...
Read more >Setup a Monorepo with PNPM workspaces and speed it up ...
In this article we're going to have a deep dive into setting up a new monorepo using PNPM workspaces that hosts a Remix...
Read more >@nrwl/cli - npm
Start using @nrwl/cli in your project by running `npm i @nrwl/cli`. There are 19 other projects in the npm registry using @nrwl/cli.
Read more >Getting Started with Monorepo with Nx Nrwl - Rupesh Tiwari
The potential solution to this problem is Monorepo. ... Creating empty Nx Monorepo workspace is our final option for this example.
Read more >Why am i getting error on using any `nx` commands
Just had this issue myself. Fixed it by deleting all my node_modules, verifying npm cache, updating my global @nrwl-cli, and reinstalling.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having the same issue as well.
I’m having the same issue, it seems that the decorators are running before the load happens. @mreschke Did you find a way to solve this?
Edit: I moved the load to my
CoreModule
thats being imported to theAppModule
.