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

freshRequire breaks fastify #111

Open
luastoned opened this issue Jun 28, 2022 · 0 comments
Open

freshRequire breaks fastify #111

luastoned opened this issue Jun 28, 2022 · 0 comments

Comments

@luastoned
Copy link

Describe the bug

If both fastify and chartjs-node-canvas are installed, freshRequire will break something downstream.

The issue is described here as well: fastify/fastify#3888

.../node_modules/avvio/plugin.js:17
     if (cache[keys[i]].exports === func) {
                        ^
TypeError: Cannot read properties of undefined (reading 'exports')
    at getName (.../node_modules/avvio/plugin.js:17:24)
    at new Plugin (.../node_modules/avvio/plugin.js:49:15)
    at new Boot (.../node_modules/avvio/boot.js:142:16)
    at Boot (.../node_modules/avvio/boot.js:93:22)
    at fastify (.../node_modules/fastify/fastify.js:343:17)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Versions

  • NodeJS version: 16.15.1
  • Chart.JS version: 3.8.0
  • Typescript version (if applicable): 4.7.4
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

1 participant