0

I've recently started getting IDE errors with a particular import in VSCode. It started occurring I believe since the latest VSCode update, as my modules are locked with yarn and the source shouldn't have changed. To be clear, this code does compile, but the IDE is complaining.

My import, semantic-ui-react, is being resolved to the dist index.d.ts file in the commonjs output sub directory, but I need it to point to the index.d.ts file in the root of the node module, which is where the components I need to use are declared.

Is there a way to override this?

I've posted the image below elaborate, green being the declaration file required to be imported.

enter image description here

1 Answer 1

1

This is a SUIR issue with latest TypeScript, it was fixed in [email protected].

Just update an restart VSCode.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.