Closed pgsfredda closed 1 year ago
I had the same problem here.
the problem is in the file slug-controller
: Cannot find module '@strapi/strapi/lib/core-api/controller/transform. (line 6).
Thanks for the report, this should be fixed in the latest version.
thank you @ComfortablyCoding
Your welcome :)
With Strapi 4.15.4
, I am facing the same error:
[ERROR] There seems to be an unexpected error, try again with --debug for more information
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ Error: Could not load js config file /home/xxx/dev/xxx-api/node_modules/strapi-plugin-slugify/strapi-server.js: Package subpath './dist/core-api/controller/transform' is not defined by "exports" in │
│ /home/xxx/dev/xxx-api/node_modules/@strapi/strapi/package.json │
...
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
@ComfortablyCoding Looks like this still hasn't been resolved. Node: v18.17.0 npm: 10.2.0 strapi: 4.14.4
Error: Could not load js config file ││ /Users/macos/code/testwebsite2022/test-strapi/node_modules/strapi-plugin-slugify/strapi-server.js: Package ││ subpath './dist/core-api/controller/transform' is not defined by "exports" in ││ /Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/package.json ││ at loadJsFile (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/dist/core/app-confi ││ guration/load-config-file.js:18:13) ││ at Module.loadFile (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/dist/core/app- ││ configuration/load-config-file.js:37:14) ││ at Object.loadPlugins (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/dist/core/l ││ oaders/plugins/index.js:90:41) ││ at async Strapi.loadPlugins ││ (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/dist/Strapi.js:304:5) ││ at async Promise.all (index 3) ││ at async Strapi.register ││ (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/dist/Strapi.js:334:5) ││ at async Strapi.load ││ (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/strapi/dist/Strapi.js:418:5) ││ at async Object.develop (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/admin/dist/_chun ││ ks/index-cce8ecb6.js:1160:28) ││ at async develop (/Users/macos/code/testwebsite2022/test-strapi/node_modules/@strapi/admin/dist/_chunks/deve ││ lop-69e28e61.js:52:5) ││ at async Command.parseAsync ││ (/Users/macos/code/testwebsite2022/test-strapi/node_modules/commander/lib/command.js:923:5)
Thanks for the update!
They must have changed the path again.
I will internalize the logic for this so it does not happen again.
Thank you, Hope this gets fixed quickly, I really needed it. :)
@BabyDino and @boroco This should now be (permanently) fixed in v2.3.7+
System configuration
Describe the problem
Installing strapi v.4.14.0, the
npm run develop
command fail with a blocking error message in the log. Uninstallingstrapi-plugin-slugify
plugin, strapi works fine again.Error log
Steps to reproduce the behavior
npm install
commandnpm run build
commandnpm run develop
commandAdditional context
package.json
config/plugin.ts