stencil init ---> not ok -- TypeError: this.breakLines(...).flat is not a function

761 views Asked by At

While setting up local in my machine(windows), I am getting following error on running "stencil init"

C:\Users>stencil init
not ok -- TypeError: this.breakLines(...).flat is not a function
Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads.
If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.

I have tried uninstalling and reinstalling node.

1

There are 1 answers

1
Andresa Martins On

Downgrade node to version 12.22.12 and it will work. The easiest way to do it is using NVM:

How to downgrade Node version