Skip to content
New issue

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

Build fail with no implicit any #79

Closed
rafaelbatistamarcilio opened this issue Mar 14, 2020 · 5 comments
Closed

Build fail with no implicit any #79

rafaelbatistamarcilio opened this issue Mar 14, 2020 · 5 comments

Comments

@rafaelbatistamarcilio
Copy link
Contributor

Hello people,

I don't know if this was because i update the mailer module, but the following error is happening when try to run or execute the production build.

image

If I disable the noImplicitAny flag in tsconfig.json, everything works fine.

My tsconfig.json

{
  "compilerOptions": {
    "module": "commonjs",
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es2017",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,
    "noImplicitAny": true,
    "noImplicitReturns": false,
    "noUnusedParameters": false,
    "paths": {
      "@atividades/*": [ "./src/academico/atividades/*", ],
      "@documentos/*": [ "./src/academico/documentos/*"],
      "@config/*": [ "./src/config/*"],
      "@utils": [ "./src/utils"]
    }
  },
  "exclude": ["node_modules", "dist"]
}

I note that mailer module don't have a .d.ts file, this can be the reason of the error ?

@rafaelbatistamarcilio
Copy link
Contributor Author

I just create an index.d.ts on the @nest-modules/mailer directory and everything works fine.

Inside the @nest-modules/mailer/dist exists some definition files. The index.d.ts file is in the wrong directory (@nest-modules/mailer/dist/index.d.ts)?

@rafaelbatistamarcilio
Copy link
Contributor Author

Another definition error in ISendMailOptions, template option is not recognized

image

The ISendMailOptions interface is extending SendMailOptions. It doesn't have to extend MailerSendMailOptions?

I changed the heritage and everything works fine.

image

If that changes are correct can i open an PR ? 😃

@juandav
Copy link
Member

juandav commented Mar 14, 2020

PR please

@rafaelbatistamarcilio
Copy link
Contributor Author

rafaelbatistamarcilio commented Mar 15, 2020

@juandav that's my first contribution for an open source project, any tips about commit messages, branch names, etc are very welcome! Thanks a lot for the opportunity of contribute with the project.

@juandav
Copy link
Member

juandav commented Mar 15, 2020

thank you.

@juandav juandav closed this as completed Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants