medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.23k stars 2.66k forks source link

plugin error #5139

Closed udaykumar2104 closed 1 year ago

udaykumar2104 commented 1 year ago

error: Error starting server TypeError: Cannot read properties of undefined (reading 'prototype') at registerPaymentServiceFromClass

Bug report

Describe the bug

A clear and concise description of what the bug is.

System information

Medusa version (including plugins): Node.js version: Database: Operating system: Browser (if relevant):

Steps to reproduce the behavior

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen

Screenshots

If applicable, add screenshots to help explain your problem

Code snippets

If applicable, add code samples to help explain your problem

Additional context

Add any other context about the problem here

olivermrbl commented 1 year ago

Needs more information. Closing until provided.

udaykumar2104 commented 1 year ago

i had resolved the issue it is from my side

gaurav0909-max commented 1 year ago

@udaykumar2104 can you please elaborate as this issue also happened with me.

YaminNather commented 11 months ago

I have the same issue. It only happens when I include my custom plugin. There should be better error messages, or a template for plugins, I followed the documentation for creating a plugin but I am still getting this error and not sure how to debug it.