SDK 24.3 - yeoman scaffolding fails
We tried to create a new Smart View customization project. We follow the instructions from "4-0190 Content Server SmartView Development - 20.2"
When using yeoman for scaffolding we got the following error:
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\SmartView\generator\node_modules\chalk\source\index.js from C:\SmartView\generator\app\index.js not supported.
Instead change the require of C:\SmartView\generator\node_modules\chalk\source\index.js in C:\SmartView\generator\app\index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (C:\SmartView\generator\app\index.js:3:15) {code: 'ERR_REQUIRE_ESM'}}
I tried to downgrade yeoman and node.js. Also tried to change generator\app\index.js to use ECM instead of cjs – but the error still appears.
The only solution found was to use to use SDK version 21.2 instead of the latest - 24.3 .
Can we expect problems using 21.2 generator to create widgets for a higher ECM versions?
What are the compatible versions of Node.js and yeoman for each SDK version?
Answers
-
required versions are included in the ReadMe.md file including in the SmartUI SDK ZIP file.
0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 147 General Questions
- 136 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 912 Cloud Fax and Notifications
- 82 Digital Asset Management
- 9.3K Documentum
- 30 eDOCS
- 175 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 6 XM Fax