nexus-plugin-prisma: After installing preview-9, unable to run Node.js server
After I installed preview-9, I am getting this error:
/node_modules/@generated/nexus-prisma/index.js:877
return nexus_1.dynamicOutputProperty({
^
TypeError: nexus_1.dynamicOutputProperty is not a function
at NexusPrismaBuilder.getCRUDDynamicOutputMethod
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 15 (7 by maintainers)
@gihrig yes ๐ฏ pretend you never saw
@prisma/nexus๐Updating to those versions, omitting
@prisma/nexusand usingnexusinstead, solved the issue. `Yup, I just wanted to write the context on this issue, probably @jasonkuhrt will look into it shortly.
@malekjaroslav thanks for bearing with us! ๐
So even though I used the new
prisma2@2.0.0-preview-9.1to scaffold the project, I was getting the same error. But when I rolled back to theprisma2@2.0.0-preview-8globally and locally, I am finally able to runyarn startwithout the error. So definitely is an issue between the versions.@divyenduz There doesnโt seem to be any new release since the merge
@malekjaroslavโs version changes and corresponding code changes worked for me with preview-10.
Question: Is using
nexusandnexus-prismain place of@prisma-nexusexpected to be the preferred solution going forward?@janpio it is an existing project, I just updated prisma.