Can we import file outside extension inside extension folder?

Hello fellas,

I would like to some functions inside utils folder at the root of strapi’s repo, from extension folder but currently I got the following error :
Error: Module not found: Error: Can’t resolve ‘…/…/utils/buildFullUrl’ in ‘/Users/***/strapi/.cache/plugins/strapi-plugin-content-manager/admin/src/components/TinyMSE’

It’s look like we can’t call function out of the extension folder… And I do not want to duplicate my functions inside my utils (root of the strapi folder) in each root folder…

So I wonder if we can do something custom the absolute path or something else :confused: the problem maybe come from my utils folder position (strapi/utils)…

Thx for your help regards

1 Like