If my information is correct i need to import dependencies
using import .. from '..' instead of var .. = require('..') in a ES6 application.
So i changed the imports. But i have problem with the import of the cookie-parser receiving the error
Module '\"cookie-parser\"' has no default export."
I changed
var cookieParser = require('cookie-parser');
to
import cookieParser from 'cookie-parser';