-
-
Notifications
You must be signed in to change notification settings - Fork 16
Description
In the current version of Strapi (4.14.4), there is no lib folder inside the @strapi/strapi module, and I had to manually change the path (services files of the server folder) in the plugin module to "dist."
NEW:
const {
getPaginationInfo,
convertPagedToStartLimit,
shouldCount,
transformPaginationResponse,
} = require('@strapi/strapi/dist/core-api/service/pagination');
const { getFetchParams } = require('@strapi/strapi/dist/core-api/service');
OLD:
const {
getPaginationInfo,
convertPagedToStartLimit,
shouldCount,
transformPaginationResponse,
} = require('@strapi/strapi/lib/core-api/service/pagination');
const { getFetchParams } = require('@strapi/strapi/lib/core-api/service');
In my configuration, I'm using Yarn, and the server stopped with this error displayed on the console:
$ strapi develop
Error: Could not load js config file /var/www/vhosts/zen-chaplygin.62-138-11-62.plesk.page/httpdocs/node_modules/strapi-plugin-fcm/strapi-server.js: Cannot find module '@strapi/strapi/lib/core-api/service/pagination'
In the end, I managed to fix it temporarily with the solution above, but I don't know much about Strapi's structure, and I'm not sure if this could be helpful. However, I wanted to issue a warning about this.