Open tafelnl opened 4 years ago
might be related to https://github.com/graphql-nexus/nexus/issues/1227
This is again the path resolution in Windows.
Workaround:
// node_modules/nexus-plugin-prisma/dist/schema/typegen/render.js
// line 40: add .replace(/\\/g, '/')
const prismaClientImportId = Path.isAbsolute(options.typegenPath) && Path.isAbsolute(options.prismaClientPath)
? Path.relative(Path.dirname(options.typegenPath), options.prismaClientPath).replace(/\\/g, '/')
: options.prismaClientPath;
// node_modules/nexus/dist/lib/nexus-schema-stateful/typegen.js
// line 84: add .replace(/\\/g, '/')
const relativeImportPath = (Path.isAbsolute(typegenImport.from)
? NexusSchema.core.relativePathTo(typegenImport.from, outputPath)
: typegenImport.from).replace(/(\.d)?\.ts/, '').replace(/\\/g, '/');
I also have a Virtual Machine (Ubuntu) running. I ran the exact same command (
nexus build
), and it works just fine.Tested on Windows with nexus version
^0.26.0-next.8
(not working) Tested on Ubuntu with nexus version^0.26.0-next.8
and^0.25.0
(both working)