You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to bundle and package-solution in gulp (using SharePoint Framework and express.js) to create a web part these functions don't work. gulp bundle --ship just does not end as I am using gulp-nodemon as a server for express and it is constantly 'Listening on port 5000'.
It is giving me the below error when trying to package-solution --ship 'Error - [package-solution] No manifests were found in 'C:\SPFX Projects.../manifests'. Ensure a build has completed successfully'. Obviously because the gulp bundle wasn't able to complete.
So when running gulp bundle --ship it does not end saying it's still 'Listening on port 5000'. How do I get around this so I can bundle and package my solution? Here is my gulpfile.js:
"use strict";constbuild=require("@microsoft/sp-build-web");constgulp=require("gulp");constnodemon=require("gulp-nodemon");build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);vargetTasks=build.rig.getTasks;build.rig.getTasks=function(){varresult=getTasks.call(build.rig);result.set("serve",result.get("serve-deprecated"));returnresult;};/* fast-serve */const{ addFastServe }=require("spfx-fast-serve-helpers");addFastServe(build);/* end of fast-serve */letserverSubTask=build.subTask("server",function(gulp,buildOptions,done){nodemon({script: "server.js",ext: "js html",env: {NODE_ENV: "development"},done: done,});});build.rig.addPostBuildTask(serverSubTask);build.initialize(require("gulp"));
The text was updated successfully, but these errors were encountered:
When trying to bundle and package-solution in gulp (using SharePoint Framework and express.js) to create a web part these functions don't work. gulp bundle --ship just does not end as I am using gulp-nodemon as a server for express and it is constantly 'Listening on port 5000'.
It is giving me the below error when trying to package-solution --ship 'Error - [package-solution] No manifests were found in 'C:\SPFX Projects.../manifests'. Ensure a build has completed successfully'. Obviously because the gulp bundle wasn't able to complete.
So when running gulp bundle --ship it does not end saying it's still 'Listening on port 5000'. How do I get around this so I can bundle and package my solution? Here is my gulpfile.js:
The text was updated successfully, but these errors were encountered: