Open vishalshitole opened 6 days ago
hello @vishalshitole, I have been looking into this and put up https://github.com/pnp/mgt-samples/pull/25 that:
My understanding is that this code was put in to transform the lit files to handle es2021 language features which are unsupported in webpack 4 by default. However, on webpack v5+ this is not necessary. From v1.19 of SPFx webpack v5 is used. Therefore, this workaround isn't necessary.
Could you remove the code that transforms the lit files as well as the babel deps and retry?
@musale Thank you for your response.
I have tried removing the code that transforms the lit files and babel dependencies from my SPFx 1.19.0 solution. However, it still does not work and gives same error.
@vishalshitole the only difference here is you're using pnpm. Let me repro with that and circle back asap.
Describe the bug We are using MGT People Picker control in our SPFx solution. Per Microsoft documentation, we have added required configurations in
gulpfile.js
andpackage.json
. It worked fine with SPFx version 1.18.2. But, when we upgraded our solution to SPFx version 1.19.0, it started giving runtime error as shown in the following screenshot.Expected behavior MGT People Picker should work with SPFx 1.19.0
Environment (please complete the following information):
Additional context
Please find below our
gulpfile.js
with required configuration.Also, we have added following packages as dev dependencies in our
package.json
.