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

Does not work with Fastify #629

Open
5 tasks done
glappsi opened this issue Apr 25, 2024 · 2 comments
Open
5 tasks done

Does not work with Fastify #629

glappsi opened this issue Apr 25, 2024 · 2 comments

Comments

@glappsi
Copy link

glappsi commented Apr 25, 2024

Describe the bug

Getting "TypeError: Cannot set properties of undefined (setting 't')" since there is no app.locals in onModuleInit (using pug).

Reproduction

  app.useStaticAssets({ root: join(__dirname, 'public') });
  app.setViewEngine({
    engine: {
      pug: require('pug'),
    },
    templates: join(__dirname, 'views'),
  });

System Info

not needed

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@rubiin
Copy link
Collaborator

rubiin commented Apr 26, 2024

small repro would be nice

@glappsi
Copy link
Author

glappsi commented Apr 26, 2024

small repro would be nice

How? A whole repo is needed, it's not just specific lines of code to cause this. Edited my question to be more specific.

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