-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Nx and typia setup docs #900
Comments
With this option
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? |
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 samchon/nestia#319 (comment) 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 |
I make the newest version nx (18.2.4) run with nestia in this example repo. See commit: honguyenhaituan/nx-typia@c1df98c |
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. |
Okay here's what I found which works with Nx v20 and Typia v6.
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"declaration": true,
"types": [],
"plugins": [{ "transform": "typia/lib/transform" }]
},
"include": ["**/*.ts"],
"exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"]
}
"build:validate:typia": {
"executor": "nx:run-commands",
"options": {
"commands": [
"tsc --project packages/<package-name>/tsconfig.lib.json --outDir dist/packages/typiaTest"
],
"parallel": false
}
}, Running this task, showed me the errors from Typia, and once I corrected them, everything worked using the standard Note: While Nx has a I hope this helps someone! |
@KyleBastien Can you send a PR of documentation in If you're busy, I'll to it by myself after two weeks later. |
@samchon Made the two PR's here: |
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é
The text was updated successfully, but these errors were encountered: