I feel like I'm in a bit of a unique situation as I can't find any documentation on how to make this interaction work. I have a repository that houses a Flask app that will contain code compiled through webpack from a different root, e.g.:
REPO_ROOT/
|-- src/
|-- client/
|-- app/
|-- css/
|-- styles.css
|-- js/
|-- index.js
|-- index.html
|-- node_modules/
|-- package.json
|-- webpack.config.js
|-- server/
|-- .env/
|-- app/
|-- static/
|-- templates/
|-- __init__.py
|-- MANIFEST.in
|-- setup.py
|-- tests/
|-- requirements.txt
|-- setup.cfg
... other meta files ...
The problem I'm running into: when I open this project, the node_modules
directory is correctly identified and I get proper completions in my client/
files, but the Python tools don't. After setting up the Python SDK to point at my virtual environment, I get completions in my server/
files, but it stops client/
from working! Then, it incorrectly marks src
as the library root
in the Project view.
IntelliJ Ultimate 2019.2.1
NodeJS & Python plugins @ 192.6262.58