VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
413 stars 65 forks source link

When I install in strapi 4.5.5, I could open /admin uri #206

Closed Koourl closed 1 year ago

Koourl commented 1 year ago

When I install in strapi 4.5.5, I could open /admin uri. There is nothing response but the termial tell me the response is 200

alejo4ragon commented 1 year ago

Me pasa lo mismo con strapi 4.9.2 deja de aparecer el dashboard

cyp3rius commented 1 year ago

@Koourl may I ask for more details?

@alejo4ragon english please.

IrethHernandez commented 1 year ago

same here with: strapi v4.9.0 node v19.8.1 package.json:

image

plugins.js:

image

cyp3rius commented 1 year ago

@IrethHernandez if I get you right, when you add the newest version of plugin to presented package.json it does not start?

  1. Does that throw any issues in the console?
  2. Have you run build before running?

By the first look what you provided shouldn't even run honestly :)

In your definitions (based on strapi default) you've got node <=18.x.x and you're trying to run it on 19.8.1. It should throw sth like that:

The engine "node" is incompatible with this module. Expected version ">=14.19.1 <=18.x.x". Got "19.8.1"

Please review once again your environment and dependencies where I see 4.10 instead of mentioned 4.9 and mix of strapi default plugins which versions are not corresponding to each other.

I've run the plugin using example with 4.10 - no issues.

bennydv commented 1 year ago

Same here. I'm on node v14.20.0

I can built and run Strapi without errors. The admin is blank and gives me this error in the console:

image

Config: image

Package image

Any help is appreciated 😉

cyp3rius commented 1 year ago

Seems the issue might be caused by lack of default in the file admin/src/index.js

May I ask any of you to do a small modification of the line:

registerTrads({ locales }) -> registerTrads({ locales = [] })

I cannot reproduce this issue, that's why the ask. Do this in the node_modules/strapi-plugin-comments and rebuild project.

bennydv commented 1 year ago

Ok, the problem was actually really simple 😬

I had as locales ['en', 'nl']. The nl property was missing from the trad Object in the file /translations/index.js. After adding the nl.json and the property, it all works fine.

Thanks for the help @cyp3rius !

cyp3rius commented 1 year ago

Yep that might happen if you've got custom locales :)