NeverVane / html-email-preview

3 stars 0 forks source link

Not able to use extension #1

Closed provkritika closed 1 month ago

provkritika commented 2 months ago

I have installed and enabled extension in VSCode but what is the next step. How to use it as I can't see anything related in command pallette

NeverVane commented 1 month ago

I have installed and enabled extension in VSCode but what is the next step. How to use it as I can't see anything related in command pallette

you have to command:

once you set the API key you’ll be able to send the second command and get the html code preview

cassikk commented 1 month ago

After buying a key and inputting it into extension settings, and attempting to restart the extension as well as VS Code, running both commands results in an error.

command 'html-email-preview.setApiKey' not found command 'html-email-preview.fetchDevices' not found

NeverVane commented 1 month ago

How are you trying to run the commands ?

In order to run the commands you need to:

(remember that an html file needs to be opened in the editor in order to run successfully )

Can you confirm you're taking the above specified actions ?

LarsKuijlenburg commented 1 month ago

I'm having the same issue, And am performing the steps like you described them above

LarsKuijlenburg commented 1 month ago

I think I might've found the issue. When I have the VSCode devtools open, it's complaining about being unable to find the axios module when trying to preview an email. That might cause these commands to break.

Looks like it's a missing dependency, as I don't see axios anywhere in the package.json

NeverVane commented 1 month ago

added missing dependency and pushed new version to VS Code Marketplace

LarsKuijlenburg commented 1 month ago

Can confirm it works for me now! Thanks for the update

travismathews commented 2 weeks ago

Sorry to necro an old issue, I would recommend we add this to the readme. It took me a bit to figure out how to set it up and I had to dig to find this issue.