Closed kbeeveer46 closed 1 month ago
If you run just gulp bundle
, do you see any errors?
No errors with gulp bundle
but the errors you posted
[11:55:52] Starting subtask 'webpack'... [11:56:20] Error - [webpack] 'dist': Did not find linked external "@microsoft/sp-core-library" for bundle "admin-manage-permissions-web-part". Did not find linked external "@microsoft/sp-core-library" for bundle "common-custom-reports-web-part".
Basically the errors from gulp bundle output.
wait, which version of spfx-fast-serve do you use? I haven't relelased 1.20 yet.
Latest version. So maybe this is expected. Just to confirm, should we always wait for the corresponding fast serve version to be released before we upgrade SPFx?
Yes, it's documented here, so you cannot run spfx-fast-serve-helpers@1.19
against a project based on SPFx 1.20. spfx-fast-serve-helpers@1.20
is not yet released, will do it on weekend.
Thanks! Will give it a try when it's released.
I ran my project with gulp serve and did not see these errors so I assume it's fast serve related? Just wanted to let you know there may need to be updates to it for the new SPFx version.
The errors below are referring to is this line on every web part file
import { Version } from '@microsoft/sp-core-library';
Which is needed for this code in the file
Errors: