question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Unexpected token '.' when running the easy-ui5 generator

See original GitHub issue

Easy-Ui5 version:

3.2.2

OS/version:

Kubuntu 21.04

Steps to reproduce the problem:

Run yo easy-ui5

What is the expected result?

Further prompts to create a project

What happens instead?

Displays error Unexpected token '.'

Any other information? (attach screenshot if possible)

grafik

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
petermuessigcommented, Feb 11, 2022

It’s related to the usage of optional chaining in the generator which is not supported on Node v12: https://stackoverflow.com/questions/59574047/how-to-use-optional-chaining-in-node-js-12

Can you use a higher version of Node.js? V14? V12 goes OOM end of April 2022.

@nicogeburek we should upgrade the min requirement in the readme to use at least Node.js 14.

1reaction
AlexanderK22commented, Feb 11, 2022

Updated Node.js to v16.14.0 and the easy-ui5 generator works as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

yo easy-ui5 project - Fails when behind corporate proxy #79
When behind the corporate proxy the generator fails with the following error: Failed to connect to GitHub to retrieve available repository for ...
Read more >
Introducing the easy-ui5 generator - SAP Blogs
The aim of this (yeoman-based) generator is to simplify the creation of OpenUI5 prototypes. The tool helps you to scaffold simple UI5 ......
Read more >
Uncaught (in promise) SyntaxError: Unexpected token 'const ...
Hi I wanted to make an API Call in Ui5 but everytime it tells me, that it doesnt know whats 'Const'. Uncaught SyntaxError:...
Read more >
Next-gen scaffolding of UI5-related projects - YouTube
Up until two years ago, bootstrapping new UI projects on local IDEs required a lot of time. This changed with the release of...
Read more >
generator-easy-ui5 - npm
Start using generator-easy-ui5 in your project by running `npm i generator-easy-ui5`. There is 1 other project in the npm registry using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found