Skip to content

Extensions : Methods are not included in strapi.plugins #8338

@couragecowardlydog

Description

@couragecowardlydog

Describe the bug
I'm trying to add a function under strapi-plugin-upload but it's not getting exported
Followed the steps here , https://strapi.io/documentation/v3.x/concepts/customization.html#plugin-extensions

Steps to reproduce the behavior

  1. Create a folder after plugin id under extension, in my case I have created dir name upload
  2. Added a file with few functions

Expected behavior

  1. Functions are expected to be present under strapi. plugins, but its empty object

Screenshots
Screenshot 2020-10-15 at 12 08 08 PM

Code snippets

console.log(global.strapi.plugins)

Output
{}

System

  • Node.js version: v12.16.1
  • NPM version: 6.13.4
  • Strapi version: 3.2.1
  • Database: Mongo
  • Operating system: OS X

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions