WebStorm 2018.2 doesn't work with .env plugin
I find that .env, where I specify the NODE_PATH environment variable, is ignored even after I installed the plugin. I am using 'absolute import' rather than 'relative import', so the NODE_PATH variable is needed. It worked in 2017.3 but not 2018.2. Any suggestion how to work around this issue? Currently I have regressed to 2017.3 version.
Please sign in to leave a comment.
Do you mean https://plugins.jetbrains.com/plugin/9525--env-files-support plugin? It has nothing to do with import paths recognition.
You can set up
NODE_PATHin Node.js default run configuration: Run | Edit Configurations..., expand Templates node, select Node.js configuration, specifyNODE_PATHin Environment variables fieldPlease see comments in https://youtrack.jetbrains.com/issue/WEB-19476