[ts] Declaration or statement expected. [1128]
i'm getting this error in my VS Code
[ts] Declaration or statement expected. [1128]
in the line :
export User, { schema } from './model'
located in every index.js file.

Please help
Export from syntax is somehow stale right now (still in stage 1): https://github.com/tc39/proposal-export-default-from. This syntax is not encouraged.
To make it work:
Replace in index.js:
export User, {schema} from './model'
with
import { schema } from './model'
Replace in controller.js
import { User } from '.'
with
import User from './model'
If I may suggest, Babel is a bit unnecessary in this project. You can simple replace it with esm package or just use Node 13 with native ESM support.
I also had an error with that
.
I also had an error with that
.
Hello, having kind of the same problem here. Did you find the solution?
if (condition) {
} else {
}