We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
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'
export User, {schema} from './model'
import { schema } from './model'
Replace in controller.js import { User } from '.' with import User from './model'
import { User } from '.'
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.
Sorry, something went wrong.
I also had an error with that .
Hello, having kind of the same problem here. Did you find the solution?
if (condition) {
} else {
}
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: