0

I am struggling to find a solution for this and would greatly appreciate any help.

I am using SPFx to create a new package a build it with gulp but the manifests file is not being generated. I have followed the exact steps below:

  1. yo @microsoft/sharepoint
    • Solution: SpfxTest
    • Component: Web part
    • Name: HelloWorld
    • Framework: none
  2. gulp build --verbose
  3. gulp serve

The temp folder with manifests.js is not created, and the path https://localhost:4321/temp/build/manifests.js returns Cannot GET /temp/build/manifests.js

Version numbers below:

C:!DevTemp\SpfxTest>node -v v22.15.0

C:!DevTemp\SpfxTest>npm -v 10.9.2

C:!DevTemp\SpfxTest>gulp -v CLI version: 3.0.0 Local version: 4.0.2

C:!DevTemp\SpfxTest>npm list --depth=0 | findstr @microsoft +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected]

C:!DevTemp\SpfxTest>yo --version 5.1.0

Thanks!

1 Answer 1

0

So you need to run the gulp bundle before you run the gulp serve

the gulp build only executes the TypeScript compiler producing all js files in the temporary lib folder. the gulp bundle runs the webpack to bundle the solution and outputs the files to the dist folder and there you will also find the manifest.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.