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.

0
1 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_PATH in Node.js default run configuration: Run | Edit Configurations..., expand Templates node, select Node.js configuration, specify NODE_PATH in Environment variables field

Please see comments in https://youtrack.jetbrains.com/issue/WEB-19476

1

Please sign in to leave a comment.