Comments (3)
I'm getting the same issue.
My main
seems to have moved from dist/main
to dist/src/main
recently?
I don't know what I did.
Here's my setup:
- nestjs 10.3.2
- node.js v20.12.1 / npm 10.5.0
- macOS Sonoma 14.4.1 (23E224)
I can't reproduce it in my other macOS:
$ nest new my-project
$ cd my-project
$ npm i
$ npm run build
$ npm start start:prod
main
is <projectDir>/dist/main
but in my existing project in my original macOS, main
is
<projectDir>/dist/src/main
Here's my tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false
}
}
Edit: Problem solved.
The culprit was <projectDir>/jest.config.ts
causing <projectDir>dist/src/main
.
i.e. my jest config file was in typescript
.
It went back to <projectDir>dist/main
as soon as I migrated back to <projectDir>/jest.config.js
I switched my jest config back to javascript
and all is well.
from nest.
@NhxKR9uxTpAf6 unfortunately that doesn't solve my problem as my dist folder is still being compiled into multiple sub-directories.
from nest.
Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the # 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.
from nest.
Related Issues (20)
- Service Injection Issue in Guard Across Modules HOT 3
- Example Deno+nest project with working tests
- Base exception filter ignores exception cause HOT 2
- TypeError: _compression is not a function when using compression middleware in NestJS 10.3.3 and SWC as TypeScript compiler HOT 1
- Autowire dependencies without annotations HOT 2
- bug : cannot use KY with latest NestJS HOT 1
- ValidationPipe({transform: true}) transforms non-numeric strings to NaN HOT 2
- Throwing an exception still leads to a crash HOT 11
- Exclude version prefix for specific routes HOT 3
- If HttpAdapterHost is a provider, is it part of the current ClsModule? HOT 1
- Express Middleware not being called for some endpoints HOT 2
- Some CLI commands do not work in project root directory HOT 4
- move away from reflect-metadata HOT 1
- Typescript compilation error with fastify adapter HOT 3
- Payment integration using phonepay documentation HOT 1
- handleConnection method can conflict with WebSocket Gateway lifecycle hook
- Feat: Add support for turbopack
- The sequence of messages from the Observable pipe in the sse method of router-response-controller.ts is disordered.
- configurable threshold for The module ... is taking ...ms to serialize
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest.