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

Cannot bundle react-command-document-preview #918

Open
1 of 9 tasks
pipifot opened this issue Jul 25, 2023 · 1 comment
Open
1 of 9 tasks

Cannot bundle react-command-document-preview #918

pipifot opened this issue Jul 25, 2023 · 1 comment
Labels
sample: react-command-document-preview type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@pipifot
Copy link

pipifot commented Jul 25, 2023

Sample

react-command-document-preview

Author(s)

@sudharsank

What happened?

When trying to gulp bundle --ship i get the following:

C:\Users\pipifo\source\repos\pnp\sp-dev-fx-extensions\samples\react-command-document-preview>gulp bundle --ship
Build target: SHIP
[11:54:02] Using gulpfile ~\source\repos\pnp\sp-dev-fx-extensions\samples\react-command-document-preview\gulpfile.js
[11:54:02] Starting gulp
[11:54:02] Starting 'bundle'...
[11:54:02] Starting subtask 'configure-sp-build-rig'...
[11:54:02] Finished subtask 'configure-sp-build-rig' after 5.46 ms
[11:54:02] Starting subtask 'pre-copy'...
[11:54:02] Finished subtask 'pre-copy' after 6.51 ms
[11:54:02] Starting subtask 'copy-static-assets'...
[11:54:02] Starting subtask 'sass'...
[11:54:02] Finished subtask 'sass' after 11 ms
[11:54:02] Starting subtask 'tslint'...
[11:54:02] [tslint] tslint version: 5.12.1
[11:54:02] Starting subtask 'tsc'...
[11:54:02] [tsc] typescript version: 3.3.4000
[11:54:02] Finished subtask 'copy-static-assets' after 567 ms
[11:54:04] Finished subtask 'tsc' after 1.65 s
[11:54:04] Finished subtask 'tslint' after 2.37 s
[11:54:04] Starting subtask 'post-copy'...
[11:54:04] Finished subtask 'post-copy' after 274 μs
[11:54:04] Starting subtask 'collectLocalizedResources'...
[11:54:04] Finished subtask 'collectLocalizedResources' after 5.94 ms
[11:54:04] Starting subtask 'configure-webpack'...
[11:54:05] Finished subtask 'configure-webpack' after 518 ms
[11:54:05] Starting subtask 'webpack'...
Browserslist: caniuse-lite is outdated. Please run the following command: npm update
[11:54:09] Finished subtask 'webpack' after 4.41 s
[11:54:09] Starting subtask 'configure-webpack-external-bundling'...
[11:54:09] Finished subtask 'configure-webpack-external-bundling' after 1.25 ms
[11:54:09] Starting subtask 'copy-assets'...
[11:54:10] Finished subtask 'copy-assets' after 300 ms
[11:54:10] Starting subtask 'write-manifests'...
[11:54:10] Finished subtask 'write-manifests' after 641 ms
[11:54:10] Finished 'bundle' after 8.29 s
[11:54:11] ==================[ Finished ]==================
[11:54:11] Project react-document-preview version:0.0.1
[11:54:11] Build tools version:3.12.1
[11:54:11] Node version:v10.24.1
[11:54:11] Total duration:12 s
The build failed because a task wrote output to stderr.
Exiting with exit code: 1

tried to npm update as mentioned but nothing changed

Using node v10
Found similar issue here where elements.xml was missing could it be the same here?

Steps to reproduce

  1. npm install (Node v10)
    2.gulp bundle --ship
  2. Build fails

Expected behavior

Expecting to be able to build the sample successfully in order to package and deploy

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Node.js version

10.24.1

Additional environment details

npm 6.14.12
Windows 11
Visual Studio 2022 Professional

@pipifot pipifot added Needs: Triage 🔍 type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs labels Jul 25, 2023
@ghost
Copy link

ghost commented Jul 25, 2023

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample: react-command-document-preview type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Projects
None yet
Development

No branches or pull requests

2 participants