Closed Dirvann closed 1 year ago
should be a .ts file when using typescript, no?
@svenruegg Thanks for the reply.
The upload plugin actually has a js file, in the readme it also sais to just use a js file for typescript. But I also tried with .ts but that also did not have any effect.
Hi @Dirvann
Ok, that's a pity. I am using the ts version as well and your script looks like mine. I am using Strapi 4.11.0 though where it works but don't think that thats the problem.
Have you tried to delete the node modules folder and the package.lock.json and run npm i
again?
Oh good to hear that it works, i will try again with version 4.10.8 ( because for some reason there is an issue when I upgrade to 4.11).
I'll just remove all node_modules and reinstall
@svenruegg Thanks! It worked
I upgraded to 4.11.0.
So a good refresh was needed
Thanks for the help!
Created PR with the clarification in the documentation #36
strapi-version: 4.10.7, but also tested with 4.10.5 lang: typescript
I added the strapi-server.js file in src/extensions/upload/strapi-server.js
I copied the typescript code that had to be put in there :
export default (plugin) => { plugin.services["image-manipulation"] = imageManipulation();
return plugin; };