Skip to content

Debugging when developing a custom sf plugin and it fails to compile #2917

Closed Answered by tomcarman
tomcarman asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @WillieRuemmele, thanks for the reply.

I tried deleting the lib directory and recompiling with yarn build. It builds with no warnings / errors, but still get the same error when trying to run a command.

For additional context, its a plugin generated with the sf dev plugin. And I am trying to execute my command locally using the provided bin/dev.js eg. this https://github.com/salesforcecli/plugin-template-sf-external/blob/main/bin/dev.js

This works great most of the time, but occasionally I manage to introduce an issue when developing thats not picked up by eslint, and causes the command to fail to properly compile, giving the error in the initial post.

I've had this a few times now, an…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@WillieRuemmele
Comment options

Answer selected by mshanemc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants