unexpected token import/export - typescript

I'm pretty sure this is because you are targeting ES2017, which supports the syntax for imports "out of the box", i.e. your output would literally contain

import { thing } from './wotsit';

If your runtime doesn't support this kind of import, you will need to use down-level compilation (i.e. target ES5) so the import gets converted into the CommonJS require call.

You can test my theory by looking at the JavaScript output to see what the import looks like.