0

I am trying to export pnp reusable controls from SPFx library component by following this article:

https://www.m365-dev.com/2020/04/23/export-pnp-reusable-controls-from-spfx-library-component/

But getting the following error when i run gulp serve

SPLoaderError.loadComponentError]: ***Failed to load component "6f080e8f-9bc6-45f7-b1cd-4c54f0e99285" (HelloWorldWebPart). Original error: ***Failed to load entry point from component "6f080e8f-9bc6-45f7-b1cd-4c54f0e99285" (HelloWorldWebPart). Original error: Cannot find module 'ControlStrings'

***INNERERROR: ***Failed to load entry point from component "6f080e8f-9bc6-45f7-b1cd-4c54f0e99285" (HelloWorldWebPart). Original error: Cannot find module 'ControlStrings' ***CALLSTACK: Error at SPLoaderError.SPError [as constructor] (https://localhost:4321/temp/workbench-packages/@microsoft_sp-webpart-workbench/local-workbench/sp-webpart-workbench-assembly_default.js:24443:24) at new SPLoaderError (https://localhost:4321/temp/workbench-packages/@microsoft_sp-webpart-workbench/local-workbench/sp-webpart-workbench-assembly_default.js:42161:28) at Function../sp-loader.js.WEBPACK_AMD_DEFINE_RESULT.ff4n.ErrorBuilder.buildErrorWithVerboseLog (https://localhost:4321/temp/workbench-packages/@microsoft_sp-webpart-workbench/local-workbench/sp-webpart-workbench-assembly_default.js:46155:21) at Function../sp-loader.js.WEBPACK_AMD_DEFINE_RESULT.ff4n.ErrorBuilder.buildLoadComponentError (https://localhost:4321/temp/workbench-packages/@microsoft_sp-webpart-workbench/local-workbench/sp-webpart-workbench-assembly_default.js:46024:21) at https://localhost:4321/temp/workbench-packages/@microsoft_sp-webpart-workbench/local-workbench/sp-webpart-workbench-assembly_default.js:45362:75

Any idea why i could be happening? Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.