lautr / strapi-plugin-duplicate-button

19 stars 8 forks source link

Duplicate button does not render. #3

Closed assemble-engineering closed 2 years ago

assemble-engineering commented 2 years ago

Followed install docs.

received this error strapi exited with code 1 strapi | yarn run v1.22.19 strapi | $ strapi develop strapi | [2022-08-26 17:53:10.790] debug: ⛔️ Server wasn't able to start properly. strapi | [2022-08-26 17:53:10.796] error: The "path" argument must be of type string. Received undefined strapi | TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined strapi | at new NodeError (node:internal/errors:387:5) strapi | at validateString (node:internal/validators:121:11) strapi | at join (node:path:1172:7) strapi | at Object.loadPlugins (/opt/node_modules/@strapi/strapi/lib/core/loaders/plugins/index.js:88:34) strapi | at async Strapi.loadPlugins (/opt/node_modules/@strapi/strapi/lib/Strapi.js:319:5) strapi | at async Promise.all (index 2) strapi | at async Strapi.register (/opt/node_modules/@strapi/strapi/lib/Strapi.js:355:5) strapi | at async Strapi.load (/opt/node_modules/@strapi/strapi/lib/Strapi.js:456:5) strapi | at async Strapi.start (/opt/node_modules/@strapi/strapi/lib/Strapi.js:198:9) strapi | error Command failed with exit code 1. strapi | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

module.exports = () => ({ 'duplicate-button': true, });

If I change true to a string strapi runs but duplicate button does not.

"dependencies": { "@strapi/plugin-i18n": "4.3.6", "@strapi/plugin-users-permissions": "4.3.6", "@strapi/strapi": "4.3.6", "better-sqlite3": "7.4.6", "pg": "^8.8.0", "strapi-plugin-duplicate-button": "^1.0.4" },