Open renesass opened 11 months ago
With this option
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"target": "node",
"compiler": "tsc",
"outputPath": "dist/apps/api",
"main": "apps/api/src/main.ts",
"tsConfig": "apps/api/tsconfig.app.json",
"assets": ["apps/api/src/assets"],
"isolatedConfig": true,
"webpackConfig": "apps/api/webpack.config.js"
},
"configurations": {
"development": {},
"production": {}
}
},
"serve": {
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"options": {
"buildTarget": "api:build"
},
"configurations": {
"development": {
"buildTarget": "api:build:development"
},
"production": {
"buildTarget": "api:build:production"
}
}
}
I can at least build it but I can not serve the app:
As I'm not using NX at all, have no insight about it.
If there's some NX user, then please help him.
@renesass Did you ever got this to work?
Unfortunately not :( I tried for too long and then give up switching to typebox. Maybe you have better luck?
Unfortunately not :( I tried for too long and then give up switching to typebox. Maybe you have better luck?
no I had to give up on NX too. I ended up using turborepo and it required no changes in the build setup, maybe you would be interested into that?
This way is not working? @loucass003 @renesass
@samchon Sadly no, according to https://github.com/samchon/nestia/issues/319#issuecomment-1828180666 it looks like the transformers are not compatible with Nx anymore
I tried myself for few hours and never got it to work 😭
I also tried to write a test code for type using packages managed by my company, but it failed. It seems to be an nx
problem.
Unfortunately, I also have no understanding of nx
.
I make the newest version nx (18.2.4) run with nestia in this example repo. See commit: https://github.com/honguyenhaituan/nx-typia/commit/c1df98cf949b84633448d9ec4edbcef3635a0927
I'm going to install it with this version and try it again. However, if the problem is reproduced every time the nx version is updated, I can consider removing it in the future. I will share the results later.
Hey @samchon,
I love typia and desperately want to integrate it with Nx (express app). I tried all I could find
However, no matter what I do, I always get errors:
Could not find ${fileToRun}. Make sure your build succeeded.
);Since some people got it running, I would love to see the specific steps on how to set it up. Here is my current setup:
/apps/api/project.json
(I tried all kind of executors, specifically @nx/js:tsc and @nx/webpack:webpack)
apps/api/webpack.config.js
(basically merged nx default but also tried the provided webpack.config.js from the docs)
tsconfig.base.json
I'm looking forward to any answer! Best, René