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
Compiling the project results in this error.
This seems to stem from the express_1.default(); line. Removing .default seems to resolve this issue.
express_1.default();
.default
Here's my tsconfig for reference tsconfig.json
{ "compilerOptions": { "baseUrl": "", "module": "commonjs", "mapRoot": "./", "outDir": "../server-dist", "declaration": false, "noImplicitAny": false, "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, "lib": ["es2016"], "target": "es6", "sourceMap": true, "allowJs": true }, "exclude": [ "node_modules" ] }
The text was updated successfully, but these errors were encountered:
Hey! Bearing in mind that you have followed the official documentation try this:
In index.ts change: import express from 'express'; for: import * as express from 'express';.
import express from 'express';
import * as express from 'express';
Sorry, something went wrong.
That works! Thanks!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Compiling the project results in
this error.
This seems to stem from the
express_1.default();
line. Removing.default
seems to resolve this issue.Here's my tsconfig for reference
tsconfig.json
The text was updated successfully, but these errors were encountered: