Search code examples
webpackwebstormintellij-14

How do i tell IntelliJ that the missing module WILL be provided?


enter image description here

IntelliJ is right to whine about this. Elm is not a file, it's a result of this config in webpack:

  resolve: {
    extensions: ['', '.js', '.es6'],
    alias: {
      Elm: path.resolve('builds/intellij/scripts/elm-program.js')
    }
  }

How do I tell intellij that there's nothing to worry about? That it's gonna be provided eventually?

These are the only options provided by the suggestions menu:

enter image description here


Solution

  • Click the > button next to Install 'Elm' or hit Right, then choose to either disable the inspection or suppress it for current statement:

    enter image description here

    Webpack aliases are not currently supported, please vote for WEB-13409 and linked tickets