question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not compile when used with SPFx 1.15.2

See original GitHub issue

Category

[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:closed
  • Created a year ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cebudcommented, Aug 26, 2022

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

1reaction
cwdatacommented, Sep 21, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found