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

🐛 [BUG] - project-init TypeError: error is not a function #153

Closed
gvandenbosch opened this issue Dec 12, 2022 · 3 comments
Closed

🐛 [BUG] - project-init TypeError: error is not a function #153

gvandenbosch opened this issue Dec 12, 2022 · 3 comments
Labels
bug Something isn't working cli minor

Comments

@gvandenbosch
Copy link

gvandenbosch commented Dec 12, 2022

Description

I am following the step by step guide to install the theme, however I run into the following error when trying to do the project-init:

sudo yarn project-init
yarn run v1.22.19
$ falcon-cli init
/opt/lampp/htdocs/prestasupergift/themes/supergift-theme/_dev/node_modules/@oksydan/falcon-cli/index.js:9                                                                                    
  error(                                                                                                                                                                                     
  ^                                                                                                                                                                                          
                                                                                                                                                                                             
TypeError: error is not a function                                                                                                                                                           
    at Object.<anonymous> (/opt/lampp/htdocs/prestasupergift/themes/supergift-theme/_dev/node_modules/@oksydan/falcon-cli/index.js:9:3)                                                      
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.12.1
error Command failed with exit code 1.

Node.js version

v18.12.1

php version

v8.1.10

OS and it's version

Lubuntu 22.04

Browsers

No response

Required module/theme

theme

Reproduction steps

Follow the step by step guide until step 6

Logs

No response

@gvandenbosch gvandenbosch added the bug Something isn't working label Dec 12, 2022
@Oksydan
Copy link
Owner

Oksydan commented Dec 12, 2022

Hi @gvandenbosch,

looks like falcon-cli is not supporting node version > 16.
I just tested it with node version 18 and was able to reproduce an issue.
No error with version 14 or 16.
I suggest you to downgrade your node version.
There is .nvmrc file inside theme/_dev folder with recommended node version.

@Oksydan Oksydan added the waiting for author waiting for author label Dec 12, 2022
@gvandenbosch
Copy link
Author

Hello @Oksydan

Thank you for the advice, I have downgrade to node v16.16.0 and now it is working fine.

So seems indeed to be an issue with node version 18 I was using

@Oksydan Oksydan added cli minor and removed waiting for author waiting for author labels Dec 18, 2022
@Oksydan
Copy link
Owner

Oksydan commented Mar 27, 2023

Hi @gvandenbosch,

new version of falcon-cli has been released.
I was testing new version and it's working properly with node from 14 to 19.
I am closing this issue.

Thank you for your contribution.

@Oksydan Oksydan closed this as completed Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli minor
Projects
None yet
Development

No branches or pull requests

2 participants