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

Could not proceed with gulp build in windows node 8.17 #5111

Open
1 of 9 tasks
Jeyeline opened this issue Mar 30, 2024 · 0 comments
Open
1 of 9 tasks

Could not proceed with gulp build in windows node 8.17 #5111

Jeyeline opened this issue Mar 30, 2024 · 0 comments
Labels
sample: react-personal-greeting type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@Jeyeline
Copy link

Jeyeline commented Mar 30, 2024

Disclaimer

Yes

Sample

samples/react-personal-greeting

Contributor(s)

@zachroberts8668

What happened?

Facing the following error on using gulp build command

gulp build

Error Details:
\node_modules\gulp-cli\node_modules\yargs-parser\build\index.cjs:1007
throw Error(yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions);
^

Error: yargs parser supports a minimum Node.js version of 10. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions
at Object. (C:\Users\s\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\yargs-parser\build\index.cjs:1007:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\s\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\yargs\build\index.cjs:2855:16)
at Module._compile (module.js:653:30)

Steps to reproduce

  1. Give npm install command
  2. gulp build - error encountered

Node Version: 8.17

(initially node 14 was used. since received an error to downgrade it to atleast 8. have reduced it)

Expected behavior

All the build should be completed successfully and should produce the relevant package for the sample

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)

What version of Node.js is currently installed on your workstation?

8.17

What version of Node.js is required by the sample?

=8.9.4 <9.0.0 || >=10.13.0 <11.0

Paste the results of SPFx doctor

import { cli } from './cli/cli.js';
^^^^^^

SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Additional environment details

No response

@Jeyeline Jeyeline added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample: react-personal-greeting 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