score:0

the imports have an random import e from "express"; at the top! at least this is my fix.

score:4

somehow vscode provided an auto import "e from 'express'" which was causing the issue.

score:5

thanks for your answer - this saved me a lot of time. i had a very similar situation with the same error message but in vue.js, after moving

axios.post(...).then(response => {...}).catch();

via copy+paste from a component to vuex store file, vscode added import { response } from 'express'; to the top of my store file causing this error and app crash. so watch out for express imports!


Related Query

More Query from same tag