Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init flow "printSchema is not a function" #616

Closed
divyenduz opened this issue Sep 27, 2019 · 1 comment
Closed

Init flow "printSchema is not a function" #616

divyenduz opened this issue Sep 27, 2019 · 1 comment
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/regression A reported bug in functionality that used to work before.
Milestone

Comments

@divyenduz
Copy link
Contributor

divyenduz commented Sep 27, 2019

On alpha.216

To reproduce:

  1. prisma2 init
  2. blank project -> sqlite -> JS -> just schema
  3. Error with debug flag:-
$ [prisma]$ prisma2 init p2-photon

  Processing the blank project
  prisma TypeError: templates_1.printSchema is not a function
  prisma     at /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58976:136
  prisma     at step (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58888:23)
  prisma     at Object.next (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58869:53)
  prisma     at /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58863:71
  prisma     at new Promise (<anonymous>)
  prisma     at module.exports.1903.__awaiter (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58859:12)
  prisma     at run (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58939:20)
  prisma     at /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58984:9
  prisma     at commitHookEffectList (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:351366:26)
  prisma     at commitPassiveHookEffects (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:351390:3) +0ms
  prisma TypeError: templates_1.printSchema is not a function
  prisma     at /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58976:136
  prisma     at step (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58888:23)
  prisma     at Object.next (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58869:53)
  prisma     at /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58863:71
  prisma     at new Promise (<anonymous>)
  prisma     at module.exports.1903.__awaiter (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58859:12)
  prisma     at run (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58939:20)
  prisma     at /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:58984:9
  prisma     at commitHookEffectList (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:351366:26)
  prisma     at commitPassiveHookEffects (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:351390:3) +1ms
@divyenduz divyenduz added bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. process/candidate kind/regression A reported bug in functionality that used to work before. labels Sep 27, 2019
@janpio janpio removed the kind/bug A reported bug. label Sep 27, 2019
@janpio janpio added this to the Preview 14 milestone Sep 27, 2019
@janpio janpio assigned janpio and timsuchanek and unassigned janpio Sep 27, 2019
@timsuchanek
Copy link
Contributor

Fixed in latest alpha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/regression A reported bug in functionality that used to work before.
Projects
None yet
Development

No branches or pull requests

3 participants