-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
hey gents... fantastic template here. I stumbled on this while actually attempting to do something extremely similar myself (great minds 😄 )...
I was hitting some issues this week w/ my prisma2 Dockerfile (which looked extremely similar to yours). After running your build here I confirmed we were getting the same issue...
backend | > typescript-graphql@ start /app
backend | > ts-node-dev --no-notify --respawn --transpileOnly ./src
backend |
backend | Using ts-node version 8.3.0, typescript version 3.5.2
backend | Error: Cannot find module '@generated/nexus-prisma'
backend | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
backend | at Function.Module._load (internal/modules/cjs/loader.js:562:25)
backend | at Module.require (internal/modules/cjs/loader.js:690:17)
backend | at require (internal/modules/cjs/helpers.js:25:18)
backend | at Object.<anonymous> (/app/src/index.ts:1:1)
backend | at Module._compile (internal/modules/cjs/loader.js:776:30)
backend | at Module._compile (/app/node_modules/source-map-support/source-map-support.js:521:25)
backend | at Module.m._compile (/tmp/ts-node-dev-hook-9733033904832429.js:56:25)
backend | at Module._extensions..js (internal/modules/cjs/loader.js:787:10)
backend | at require.extensions.(anonymous function) (/tmp/ts-node-dev-hook-9733033904832429.js:58:14)
backend | [ERROR] 20:55:32 Error: Cannot find module '@generated/nexus-prisma'
Luckily there is a fix...that was just posted....and I'm just sharing this b/c your awesome template should stay up to date ;-)
You can remove the output property in project.prisma and everything is kosher here again...
prisma/prisma-client-js#56 (comment)
Thanks again and happy coding 🍻
Metadata
Metadata
Assignees
Labels
No labels