Skip to content

Are you able to run vite-plugin-angular through Intellij/Webstorm run configurations? #1380

Answered by svdeveloper1
svdeveloper1 asked this question in Q&A
Discussion options

You must be logged in to vote

After looking at the example repo, I can see that the problem was the working directory I was using was wrong. It defaulted to the workspace root in an nx monorepo, but the working directory needs to be the same as the project directory. Using a run configuration template solved the issue.

Create a .run/Template Vitest.run.xml file in your project directory.

<component name="ProjectRunConfigurationManager">
  <configuration default="true" type="JavaScriptTestRunnerVitest">
    <config value="$PROJECT_DIR$/apps/<YOUR_APP_NAME_HERE>/vite.config.mts" />
    <node-interpreter value="project" />
    <vitest-package value="$PROJECT_DIR$/node_modules/vitest" />
    <working-dir value="$PROJECT_D…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by svdeveloper1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants