Not supporting es6 in ts

I am using a ES6, CommonJS config for my ts project and it seems to not like the way I’m importing things. Everything works and functions as intended when testing locally.

Node V: 14.x
TSConfg: { "compilerOptions": { "lib": [ "es6" ], - Pastebin.com
Error: import bodyParser, { json, urlencoded } from 'body-parser';^^^^^^SyntaxError - Pastebin.com

I know for a fact I’ve imported everything correctly from github to glitch so I am confused why this is happening.

I am happy to provide my app.ts file (The main file) if needed.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.