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)

Most upvoted comments

Question: Is using nexus and nexus-prisma in place of @prisma-nexus expected to be the preferred solution going forward?

@gihrig yes ๐Ÿ’ฏ pretend you never saw @prisma/nexus ๐Ÿ˜ƒ

Updating to those versions, omitting @prisma/nexus and using nexus instead, solved the issue. `

    "nexus": "0.12.0-beta.9",
    "nexus-prisma": "0.0.1-beta.7",
    "prisma2": "2.0.0-alpha.160"

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.1 to scaffold the project, I was getting the same error. But when I rolled back to the prisma2@2.0.0-preview-8 globally and locally, I am finally able to run yarn start without 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 nexus and nexus-prisma in place of @prisma-nexus expected to be the preferred solution going forward?

@janpio it is an existing project, I just updated prisma.