-
Notifications
You must be signed in to change notification settings - Fork 1
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
More helpful error message when encountering missing modules while reading .miyagi.js
#388
Comments
Thank you for reporting. This usually means that npm dependencies are not yet installed and the extension encountered a missing module when trying to read the Can you try installing npm dependencies and then run the “miyagi: Reload” command from the VS Code Command Palette? I’ll put it on my to do list to output a more helpful error message with the above-mentioned information. |
.miyagi.js
Aha! I found what the problem was here. I installed it at the root of a Circle Dot based project. Here it throws the error no matter whether the dependencies are already installed or not. When I open VSCode to just the relevant theme ( I wonder whether one could add the ability to provide a setting that is the path to a theme directory and the extension would then look for the NPM modules inside this directory. I would be happy to contribute if this makes sense. Thanks! |
In theory the extension supports miyagi projects that are not in the root folder and even multiple projects opened at the same time. The extension searches for all vscode-miyagi/src/lib/projects.ts Line 46 in c25b736
I’m not sure why this didn’t work in your case 🤔 |
I will create a fresh clone over the weekend and try it again to see if I can replicate. |
I just installed the extension in VSCode and got the following error:
VSCode Details
The text was updated successfully, but these errors were encountered: