External frontend-hooks

Hello!

I have followed this documentation for implementing external frontend-hooks: Configuration | n8n Docs

On version 1.35 this worked fine, now we upgraded to 1.53 and hooks file no longer work:

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

What is the correct way to setup the external frontend-hooks now?
Thanks!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @vasoviand,

Welcome to the community :raised_hands:

Can you share how you are loading the script and share an example of what you are loading?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.