What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
[ ] 💥 Internet Explorer
[x] 💥 Microsoft Edge
[x] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)
Additional environment details
SPFx version: 1.19.0
Node.js version: 18.20.3
Issue description
I have created a library of reusable code with Rollup, and published it to the private/internal NPM registry. When I try to use that library package in my SPFx solution, I get multiple 'Module not found' error messages while bundling/serving the solution. However, when I add @microsoft/sp-application-base package as a dependency in my SPFx project, it works fine. Please find the attached file with the error message JSON below.
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
Issue description
I have created a library of reusable code with Rollup, and published it to the private/internal NPM registry. When I try to use that library package in my SPFx solution, I get multiple 'Module not found' error messages while bundling/serving the solution. However, when I add
@microsoft/sp-application-base
package as a dependency in my SPFx project, it works fine. Please find the attached file with the error message JSON below.module-not-found-error.json
Below is the rollup.config.js of my reusable code library.
Not sure if I am missing anything here. Any inputs/guidance is greatly appreciated.
Thank you!