gulp package-solution --ship will raise this error "Error - [package-solution] No manifests were found in 'C:/SPFX/release/manifests'. Ensure a build has completed successfully" #2819
Unanswered
mvcsharepointdev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have build an SPFx web part named AutoRefresh which does not use a javascript framework, then i tried to run those commands:-
gulp clean gulp build gulp bundle --ship gulp package-solution --ship
but i got those errors:-
**C:\SPFX\src\webparts\autoRefresh>gulp clean
[17:17:12] Working directory changed to C:\SPFX
Build target: DEBUG
[17:17:14] Using gulpfile C:\SPFX\gulpfile.js
[17:17:14] Starting 'clean'...
[17:17:14] Starting gulp
[17:17:14] Starting subtask 'clean'...
[17:17:14] Finished subtask 'clean' after 30 ms
[17:17:14] Finished 'clean' after 37 ms
[17:17:15] ==================[ Finished ]==================
[17:17:15] Project auto-refresh version:0.0.1
[17:17:15] Build tools version:3.18.1
[17:17:15] Node version:v18.20.4
[17:17:15] Total duration:3.02 s
C:\SPFX\src\webparts\autoRefresh>gulp build
[17:17:16] Working directory changed to C:\SPFX
Build target: DEBUG
[17:17:18] Using gulpfile C:\SPFX\gulpfile.js
[17:17:18] Starting 'build'...
[17:17:18] Starting gulp
[17:17:18] Starting subtask 'pre-copy'...
[17:17:18] Finished subtask 'pre-copy' after 51 ms
[17:17:18] Starting subtask 'copy-static-assets'...
[17:17:18] Starting subtask 'sass'...
[17:17:18] Finished subtask 'sass' after 237 ms
[17:17:18] Starting subtask 'lint'...
[17:17:18] [lint] eslint version: 8.7.0
[17:17:18] Starting subtask 'tsc'...
[17:17:18] [tsc] typescript version: 4.7.4
[17:17:18] Finished subtask 'copy-static-assets' after 399 ms
[17:17:21] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(8,1): error TS6133: 'escape' is declared but its value is never read.
[17:17:21] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(10,1): error TS6133: 'styles' is declared but its value is never read.
[17:17:21] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(19,11): error TS6133: '_isDarkTheme' is declared but its value is never read.
[17:17:21] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(20,11): error TS6133: '_environmentMessage' is declared but its value is never read.
[17:17:21] Error - 'tsc' sub task errored after 2.67 s
exited with code 2
[17:17:21] 'build' errored after 3.09 s
About to exit with code: 1
Process terminated before summary could be written, possible error in async code not continuing!
Trying to exit with exit code 1
C:\SPFX\src\webparts\autoRefresh>gulp bundle --ship
[17:17:21] Working directory changed to C:\SPFX
Build target: SHIP
[17:17:24] Using gulpfile C:\SPFX\gulpfile.js
[17:17:24] Starting 'bundle'...
[17:17:24] Starting gulp
[17:17:24] Starting subtask 'pre-copy'...
[17:17:24] Finished subtask 'pre-copy' after 52 ms
[17:17:24] Starting subtask 'copy-static-assets'...
[17:17:24] Starting subtask 'sass'...
[17:17:24] Finished subtask 'sass' after 232 ms
[17:17:24] Starting subtask 'lint'...
[17:17:24] [lint] eslint version: 8.7.0
[17:17:24] Starting subtask 'tsc'...
[17:17:24] [tsc] typescript version: 4.7.4
[17:17:24] Finished subtask 'copy-static-assets' after 374 ms
[17:17:27] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(8,1): error TS6133: 'escape' is declared but its value is never read.
[17:17:27] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(10,1): error TS6133: 'styles' is declared but its value is never read.
[17:17:27] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(19,11): error TS6133: '_isDarkTheme' is declared but its value is never read.
[17:17:27] Error - [tsc] src/webparts/autoRefresh/AutoRefreshWebPart.ts(20,11): error TS6133: '_environmentMessage' is declared but its value is never read.
[17:17:27] Error - 'tsc' sub task errored after 2.63 s
exited with code 2
[17:17:27] 'bundle' errored after 3.03 s
About to exit with code: 1
Process terminated before summary could be written, possible error in async code not continuing!
Trying to exit with exit code 1
C:\SPFX\src\webparts\autoRefresh>gulp package-solution --ship
[17:17:27] Working directory changed to C:\SPFX
Build target: SHIP
[17:17:29] Using gulpfile C:\SPFX\gulpfile.js
[17:17:29] Starting 'package-solution'...
[17:17:29] Starting gulp
[17:17:29] Starting subtask 'package-solution'...
[17:17:29] Error - [package-solution] No manifests were found in 'C:\SPFX/release/manifests'. Ensure a build has completed successfully
[17:17:29] Finished subtask 'package-solution' after 17 ms
[17:17:29] Finished 'package-solution' after 23 ms
[17:17:30] ==================[ Finished ]==================
Error - [package-solution] No manifests were found in 'C:/SPFX/release/manifests'. Ensure a build has completed successfully
[17:17:31] Project auto-refresh version:0.0.1
[17:17:31] Build tools version:3.18.1
[17:17:31] Node version:v18.20.4
[17:17:31] Total duration:2.93 s
[17:17:31] Task errors:1
The build failed because a task wrote output to stderr.
Exiting with exit code: 1**
any advice?
Thanks
The SPFx does not have a release sub-foldr as follow:-
Beta Was this translation helpful? Give feedback.
All reactions