You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I need to use Nestia on a Nest project with monorepo structure. Sadly, I get this error after enable monorepo mode.
Error: Error on nestia.core.TypedRoute.Get(): no transform has been configured. Run "npx typia setup" command, or check if you're using non-standard TypeScript compiler like Babel or SWC.
Running npx typia setup don't help, by default, nest seems to use webpack [1] and the "plugin" [2] option is setup in tsconfig.json
// project-name-npm-mono/tsconfig.json:
...
"plugins": [// <<--- [2]{"transform": "@nestia/core/lib/transform",/** * Validate request body. * * - "assert": Use typia.assert() function * - "is": Use typia.is() function * - "validate": Use typia.validate() function * - "assertEquals": Use typia.assertEquals() function * - "equals": Use typia.equals() function * - "validateEquals": Use typia.validateEquals() function */"validate": "assert",/** * Validate JSON typed response body. * * - "assert": Use typia.assertStringify() function * - "is": Use typia.isStringify() function * - "validate": Use typia.validateStringify() function * - "stringify": Use typia.stringify() function, but dangerous * - null: Just use JSON.stringify() function, without boosting */"stringify": "assert"},{"transform": "typia/lib/transform"}],
...
I don't find any resource about using Nestia on monorepo, did I miss something ?
@fluffy-kaiju When use nestia you must compile your app by tsc and the default repo nestjs generate use webpack: true. So you have two way to make run correctly:
Question
Hi!
I need to use Nestia on a Nest project with monorepo structure. Sadly, I get this error after enable monorepo mode.
Running
npx typia setup
don't help, by default, nest seems to use webpack [1] and the"plugin"
[2] option is setup intsconfig.json
I don't find any resource about using Nestia on monorepo, did I miss something ?
Here I've created a repo with the walkthrough of my test https://github.com/fluffy-kaiju/nestia-v3.2.1-nestjs-monorepo-issue
Thanks for your help 😄
The text was updated successfully, but these errors were encountered: