Open bkrausz opened 4 years ago
I have the same kind of problem - .nexus/build/node_modules
is almost empty and npm start
fails when it can't find the Prisma plugin framework-entrypoint.js
. nexus-plugin-prisma
directory is there, but depending on the version it only contains the schema-entrypoint
or nothing at all. v0.25.0 works but not next.
Any update on this or idea where I could dig? The TS compilation code is a lot to dig through/diffing didn't produce anything obvious, but I'm very excited for the apollo-server switch (batch + file uploads) and would like to switch to next
ASAP if I can resolve this.
BTW I tried on -next
a few days ago and it was still happening.
Aha...I figured out what it is! Importing from @nexus/schema
or nexus/components/schema
causes the issue. I was doing import { arg } from "nexus/components/schema";
instead of using schema.arg
.
That is...very unintuitive. It'd be great to have a lint rule or similar to prevent the issue.
Nexus Report
Description
npm run build
works fine, but uponnpm start
I get this error:.nexus/build/node_modules/nexus
only contains(dist/)?components/schema
and apackage.json
(almost like it's incorrectly tree-shaking).I've tried blowing away
.nexus
andnode_modules
.This works in v0.25.0, just not in next