How do I configure Intellij to allow node import assertions?

Viewed 44

I have the following code...

enter image description here

It compiles and functions just fine with the --experimental-json-modules flag but it still shows the following error on the red tilda...

enter image description here

I am already configured to use ECMAScript6+ so what else do I need?

1 Answers

Import assertions proposal is supported since version 2021.3, see WEB-52552; please consider upgrading IDEA to the most recent version

Related