Forum Discussion
Kiril Iliev
Jul 29, 2025Copper Contributor
SPFX 1.21.1 in monorepo - utility module could not be exported
I am trying to migrate multiple projects to monorepo. I need to migrate some common utilities functions in a common module. There is an export warning that the module has no exports, while it does h...
Kiril Iliev
Jul 31, 2025Copper Contributor
Fixed it by doing the following:
- Added module in the library -> tsconfig
{ "compilerOptions": { ... "module": "ESNext" }, ... }
- Added module and target in spfx1 -> tsconfig
{ "extends": "../tsconfig.base.json", "compilerOptions": { ... "module": "ESNext", "target": "esnext" }, ... }
- Updated strictNullChecks in the root tsconfig.base.json to false as it was not compatible with scaffolded projects very well when using FluentUI.