marlokessler / strapi-plugin-image-optimizer

Optimize your images for desktop, tablet and mobile and different image formats.
MIT License
14 stars 10 forks source link

Could not load js config file D:\projects\strapi\my-project\node_modules\strapi-plugin-image-optimizer\strapi-server.js: Cannot find module '@strapi/utils/dist/file' #37

Closed ErikHarutyunyan closed 8 months ago

ErikHarutyunyan commented 10 months ago

Error: Could not load js config file D:\projects\strapi\my-project\node_modules\strapi-plugin-image-optimizer\strapi-server.js: Cannot find module '@strapi/utils/dist/file' │
│ Require stack: │
│ - D:\projects\strapi\my-project\node_modules\strapi-plugin-image-optimizer\dist\server\services\image-optimizer-service.js │
│ - D:\projects\strapi\my-project\node_modules\strapi-plugin-image-optimizer\dist\server\services\index.js │
│ - D:\projects\strapi\my-project\node_modules\strapi-plugin-image-optimizer\dist\server\index.js │
│ - D:\projects\strapi\my-project\node_modules\strapi-plugin-image-optimizer\strapi-server.js │
│ - D:\projects\strapi\my-project\node_modules\@strapi\utils\dist\index.js │
│ - D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\commands\actions\admin\create-user\action.js │
│ - D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\commands\actions\admin\create-user\command.js │
│ - D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\commands\index.js │
│ - D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\cli.js │
│ - D:\projects\strapi\my-project\node_modules\@strapi\strapi\bin\strapi.js │
│ at loadJsFile (D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\core\app-configuration\load-config-file.js:18:13) │
│ at Module.loadFile (D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\core\app-configuration\load-config-file.js:37:14) │
│ at Object.loadPlugins (D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\core\loaders\plugins\index.js:90:41) │
│ at async Strapi.loadPlugins (D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\Strapi.js:310:5) │
│ at async Promise.all (index 3) │
│ at async Strapi.register (D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\Strapi.js:340:5) │
│ at async Strapi.load (D:\projects\strapi\my-project\node_modules\@strapi\strapi\dist\Strapi.js:424:5) │
│ at async Object.develop (D:\projects\strapi\my-project\node_modules\@strapi\admin\dist_chunks\index-ffd2f664.js:1245:28) │
│ at async develop (D:\projects\strapi\my-project\node_modules\@strapi\admin\dist_chunks\develop-da585b1e.js:52:5) │
│ at async Command.parseAsync (D:\projects\strapi\my-project\node_modules\commander\lib\command.js:923:5)

I can't use the plugin, can you tell me what it is?

image

image

image

image

ErikHarutyunyan commented 10 months ago

image

e115sa commented 10 months ago

I have the same problem on strapi v4.14.5 in out project. Is the fix planned in the future releases?

mikeacre commented 9 months ago

Also having this issue.

pietropietro commented 9 months ago

same issue

igghera commented 8 months ago

Same error here, unable to use the plugin

welschmoor commented 8 months ago

Same

Rupsnigdha commented 8 months ago

same issue

y-nk commented 5 months ago

adding @strapi/core:* breaks older installs. this will pull the latest core, which pulls @strapi/data-transfer, @strapi/admin and ultimately @strapi/strapi@latest... even if you'd pinned strapi@4.14 at root level. better pin the core version to something tangible 🙏