Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Pnp JS with the solution #2

Open
Phentrin opened this issue Feb 27, 2023 · 0 comments
Open

Using Pnp JS with the solution #2

Phentrin opened this issue Feb 27, 2023 · 0 comments

Comments

@Phentrin
Copy link

I implemented the solution with your recommandations Blog post

This is great explained or love this approach.

But when I try to import the Pnp/js module and try to compile the project, I receive the following error at "WebPack" step during gulp serve

Error - [webpack] 'dist': ../external/dist/formulaire-examen-Renforce-web-part.js Module parse failed: E:\PROJETS\Temp\spfx\node_modules\source-map-loader\index.js!E:\PROJETS\Temp\external\dist\formulaire-examen-Renforce-web-part.js Unexpected token (37245:8)
You may need an appropriate loader to handle this file type. | const { replace } = { | replace: true, | ...props, | }; | return (instance) => { @ ./lib/webparts/formulaireExamenRenforce/FormulaireExamenRenforceWebPart.js 2:17-89

Any idea how to resolve this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant