Token import() from webpack used for chunks is not supported by sonarqube

(Dimitri Kopriwa) #1

Dear all,

Thanks for doing sonarqube and sonarcloud.

We use both to store our code quality coverage private and open source.

It seems that import() from webpack used for chunking is not supported by sonar-scanner v2.8, this is a sample of error we get while using the scanner:

ERROR: Unable to parse file: /mnt/mesos/sandbox/builds/yeutech/www/src/containers/page/NotFoundPage/Loadable.js
ERROR: Parse error at line 4 column 17:

1: import Loadable from '../../../components/Loadable/index';
3: export default Loadable({
4:   loader: () => import(/* webpackPrefetch: true */ './index'),
5: });

We are using sonarqube Version, we haven’t tried any update because we found this one to be stable and working and doesn’t need so far to upgrade.

What is the prefered behavior about this ?

Related issues