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

Error: not supported #1160

Open
BryanCrotaz opened this issue Oct 29, 2021 · 5 comments
Open

Error: not supported #1160

BryanCrotaz opened this issue Oct 29, 2021 · 5 comments

Comments

@BryanCrotaz
Copy link

After successful ember-cli-update to 3.28.3

ember -v
ember-cli: 3.28.3
node: 12.16.1
os: darwin x64

--run-codemods fails with Error: Not supported

DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember-cli-update --run-codemods
? Which blueprint would you like to run codemods for? ember-cli
Error: Not supported
    at getApplicableCodemods (/Users/bryan/.config/yarn/global/node_modules/boilerplate-update/src/get-applicable-codemods.js:19:32)
    at async getAndPromptCodemods (/Users/bryan/.config/yarn/global/node_modules/boilerplate-update/src/get-and-prompt-codemods.js:12:18)
    at async promptAndRunCodemods (/Users/bryan/.config/yarn/global/node_modules/boilerplate-update/src/prompt-and-run-codemods.js:13:18)
    at async codemods (/Users/bryan/.config/yarn/global/node_modules/ember-cli-update/src/codemods.js:80:10)
    at async Object.handler (/Users/bryan/.config/yarn/global/node_modules/ember-cli-update/bin/commands/default.js:42:19)
@BryanCrotaz
Copy link
Author

Only happens in node 12. Node 14 works, but isn't supported by ember-cli, so it's pain to switch back and forth.

@NotGrm
Copy link
Contributor

NotGrm commented Feb 5, 2022

Hey, @BryanCrotaz do you found a fix for your issue? I encountered the same issue after trying to update my app from 3.14 to 3.28 and I did not manage to execute the --run-codemods command. Every time I get the same backtrace.

Switching Node version does not seems to fix anything for me

@BryanCrotaz
Copy link
Author

I've found that the codemods themselves only work up to node 10, (otherwise the dreaded cb.apply is undefined), but ember-cli-update only works in node 12 and above.

@BryanCrotaz
Copy link
Author

#1167

@Yelinz
Copy link

Yelinz commented Oct 27, 2022

Nearly all codemods work for upgrading from 3.20 to 4.0 for me with node 14.4, see #1105 (comment) for problems with cb.apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants