prisma-labs / graphql-framework-experiment

Code-First Type-Safe GraphQL Framework
https://nexusjs.org
MIT License
673 stars 66 forks source link

Absolute import path aliases #855

Open jasonkuhrt opened 4 years ago

jasonkuhrt commented 4 years ago

What

Why

How

Instances

mtzfactory commented 4 years ago

Hi, I'm using nexus in a project that use yarn workspaces and lerna to build the app...

It works perfectly in dev mode... but fails when I try to build it...

The project use the nexus prisma plugin, with a sqlite database...

❯ yarn workspace @xXXxXXx/server build
yarn workspace v1.22.4
yarn run v1.22.4
$ nexus build
1170 ● nexus:build get used plugins
2099 ● nexus:plugin:nexusPluginPrisma Running Prisma generators ...
 727 ● nexus:build starting reflection
5223 ✕ nexus reflection failed
       | error  Error:
       |                Runner failed with exit code "1".
       |
       |            at ChildProcess.<anonymous> (/Users/xxx/xxx/xxx/packages/server/node_modules/nexus/dist/lib/reflection/reflect.js:71:28)
       |            at ChildProcess.emit (events.js:315:20)
       |            at ChildProcess.EventEmitter.emit (domain.js:485:12)
       |            at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

I think this issue might be related...

jasonkuhrt commented 4 years ago

Hey @mtzfactory, I doubt it. Can you share your tsconfig? Access to a repo repro is welcome too.

mtzfactory commented 4 years ago

Hi @jasonkuhrt, I've uploaded to gist the config files...

https://gist.github.com/mtzfactory/65f321b03ef09769c7366e6550323675

If it doesn't help, I'll try to reproduce it in a new repo...

jasonkuhrt commented 4 years ago

Thanks @mtzfactory, took a look, not sure what is going on. Not related to this issue though. Please open a new one if issue persists. Note that monorepos are not yet officially supported #530. So YMMV there.