Does not compile when used with SPFx 1.15.2
See original GitHub issueCategory
[x] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.10.0-beta.2834849]
Expected / Desired Behavior / Question
Would be great if this lib could be used with SPFx v1.15.2.
Observed Behavior
We used version 3.9.0 without any problems in a project configured for SPFx 1.15.0. After upgrading the project to SPFx 1.15.2 gulp bundle fails with errors referring to @fluentui/scheme:
Error - [webpack] 'dist':
./node_modules/@pnp/spfx-controls-react/lib/common/utilities/ThemeUtility.js
Module not found: Error: Can't resolve '@fluentui/scheme-utilities' in 'C:/Projects/SharePointFramework/BusinessMain2018/node_modules/@pnp/spfx-controls-react/lib/common/utilities'
resolve '@fluentui/scheme-utilities' in 'C:/Projects/SharePointFramework/BusinessMain2018/node_modules/@pnp/spfx-controls-react/lib/common/utilities'
Parsed request is a module
using description file: C:/Projects/SharePointFramework/BusinessMain2018/node_modules/@pnp/spfx-controls-react/package.json (relative path: ./lib/common/utilities)
After upgrading to the latest beta the problem still persists.
Steps to Reproduce
Maybe this will always happen when using the lib in conjunction with SPFx 1.15.2.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
SharePoint Framework v1.15.2 release notes - Microsoft Learn
This page addresses details related to a specific SPFx release version. This page doesn't include additional SPFx prerequisites that must be ...
Read more >SPFx 1.15 - ESLint - version of TypeScript which is not ...
Create a new SPFx Project with version 1.15 GA · Install deps with npm install · Run ESLint with eslint src/* --ext js,ts,tsx ......
Read more >SharePoint Framework (SPFx) v1.15 and the attack of ESLint!
I like that SPFx projects now use ESLint over the long-deprecated TSLint. What I don't like is a vendor telling me how I...
Read more >How to use Microsoft Graph Toolkit with SPFX 1.15.2
Ok almost yes. I tried that but ViewType is not part of the spfx. I changed the ViewType import to @microsoft/mgt-spfx. Now its...
Read more >SharePoint Framework (SPFx) v1.15 - The Attack of ESLint!
I don't like this… so… this will be my opinionated "how to use ... with SPFx v1.15 projects 11:29 : Trigger ESLint issues...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Package @microsoft/mgt-spfx is supporting spfx 1.15 from version 2.6.1, but in spfx-controls-react 3.10 is used is 2.3.0.
@AJIXuMuK Shouldn’t be @microsoft/mgt-spfx package upgraded to version 2.6.1 for fully supporting spfx 1.15 in spfx-controls-react? Thank you
@AJIXuMuK I just tested with this version:
"@pnp/spfx-controls-react": "3.10.0-beta.3081239"
and it did compile without issues using NodeJS v16. Thanks for the fix.