How to make PyCharm Javascript auto imports work correctly?

Viewed 79

Up until recently PyCharm would automatically add node_modules import statements like:

import { useRef } from 'react';

now suddenly the only option it gives is this import

import { useRef } from 'react/cjs/react.production.min';

I've tried looking through the relevant preferences but have no idea what could be wrong. What settings have changed in recent updates that broke this?

0 Answers
Related