S
S
Shaks2017-11-10 16:16:51
webstorm
Shaks, 2017-11-10 16:16:51

How to fix false syntax error in webstorm?

When I try to use dynamic import in Webshtorm, I get a syntax error - Unterminated statement
1510319391.png
Although, syntactically everything is written correctly. Proof - https://webpack.js.org/guides/code-splitting/#dyna...
Who knows how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Nemiro, 2017-11-10
@shaks

Write in one line or add curly braces? UPD: If the syntax is correct and the problem is in the IDE , then you should either update the type definitions, or switch the language / standards version, or simply update the software.
WebStorm 2017.3 EAP, 173.2941

  • Better support for import() syntax in JavaScript and TypeScript

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question