Error Unexpected token '.' when running the easy-ui5 generator
See original GitHub issueEasy-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)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Updated Node.js to
v16.14.0
and the easy-ui5 generator works as expected.