-
Notifications
You must be signed in to change notification settings - Fork 862
handle node 6 gracefully #2308
Comments
Can you share a minimum setup to reproduce this error? |
Hi @marktani , ➜ hello-world prisma playground Get in touch if you need help: https://www.graph.cool/forum |
Hi @marktani , |
Thanks for the follow up! The CLI should handle older node versions gracefully. |
I'm running 6.9.4, had the same error. Can we include the requirements for the node version in the getting started docs? I wasn't able to find that anywhere. |
Or maybe we could include another step of installing nvm, and creating a version file in the directory. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
I am unable to reproduce this issue with node 6.x. This was resolved in However, CLI should still handle the crash gracefully, so, I would keep this open. |
I can also confirm that I am able to reproduce this issue in node version 6.11.1. |
Following vagrant file can be used to reproduce this Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.synced_folder "/Users/divyendusingh/Documents/projects/graphcool/prisma", "/home/vagrant/prisma"
config.vm.synced_folder ".", "/home/vagrant/prisma-3205"
config.vm.provision :shell, :path => "bootstrap.sh"
end #!/usr/bin/env bash
# Node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v6.11.1 Then I was able to reproduce this issue while using |
This is fixed in the latest beta - |
This is available in the latest version |
Bug Report
After upgrading to prisma 1.7.3 and applying the new prisma.yml structure >>
removing keys: service, stage, cluster
adding key: endpoint
Using node-v6.11.1
Getting this Error:
TypeError: url_1.URL is not a constructor
Stack trace:
When downgrading to V1.6.3
npm i -g prisma@1.6.3
and restoring the prisma.yml old format (with cluster and service definitions and without the endpoint: url), I can deploy again.
Upgraded again to prisma 1.7.3 and maintained the keys:
service, stage, cluster + endpoint key,
I can deploy again (using the new V)
The text was updated successfully, but these errors were encountered: