Questions tagged [yeoman-generator]
Yeoman generator is a scaffolding system built on top of Node.js
693
questions
1
vote
0
answers
24
views
Import Javascript modules in Yeoman Excel add-in project
I'm trying to create an Excel add-in with Yeoman generator. In the excel_project/src/taskpane/taskpane.js file I'd like to call the 'fs' library. When I execute taskpane.js alone on my terminal, ...
0
votes
0
answers
25
views
JHipster Blueprint | Yeoman Generator - Using a user's answer to a prompt for templating with EJS
I am developping a JHipster blueprint and I need to use EJS to template the files I want to generate. Since this is my first time using EJS, all I am trying to do for now is use an answer from one of ...
2
votes
1
answer
26
views
What do the JHipster sub-generator phases do?
Recently, I've been trying to implement a blueprint for JHipster. I decided to override the entity and entity-server sub-generators. Each sub-generator has multiple phases of which I can choose to /...
0
votes
0
answers
10
views
Confused with IDToken in yeoman-generator sso
I have the need to get the OpenID Connect IDToken when running the Sideload SSO Excel add-in.
The add-in is working fine and I am able to get the user's login and return the data from AzureAD as the ...
0
votes
1
answer
26
views
"Which type of client-side component to create?" is missing "Extension"
I am using Node.js 14.18.1 (x64) and npm.
When i run D:\extensionfullstack>yo @microsoft/sharepoint I got this :-
D:\>cd D:\extensionfullstack
D:\extensionfullstack>yo @microsoft/sharepoint
...
0
votes
0
answers
7
views
When trying to run the yeoman generator for generating an office add in I get 'SyntaxError: Unexpected token a in JSON at position 102'
I am trying to use the yeoman installer following this example: https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator.
I have the latest LTS ...
0
votes
0
answers
39
views
Yeoman for VS Code extension says: Trying to copy from a source that does not exist
I am trying to kickstart a simple VS Code extension using Yeoman, on Windows 10 Pro.
I am facing the same kind of problem that is described here "Error code Trying to copy from a source that does ...
0
votes
1
answer
83
views
npm install -g yo generator-code install issue [duplicate]
Ive been in and out of forums and discord servers all week trying to figure this out. so i installed the npm package in the title and got these warnings:
npm WARN deprecated uuid@3.4.0: Please upgrade ...
0
votes
1
answer
22
views
Yeoman pass prompt answers to subgenerator
I have a yeoman generator with some subgenerators.
I know I can pass options from the parent- to the subgenerators when calling composeWith(...).
But how can I pass the answers I get from prompting? ...
0
votes
0
answers
30
views
Not Able to install yeomen in windows 10
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN ...
0
votes
0
answers
82
views
Yo @microsoft/sharepoint generator Cannot find "package.json" file required by this generator
I just reset my development environment and installed node and npm via nvm. Also installed yeoman and downloaded the @microsoft/sharepoint generator. When I go to run the yo @microsoft/sharepoint I ...
0
votes
1
answer
112
views
How to use Yeoman to create a office content add-ins project
Yeoman can create a office add-ins but can not create content add-ins
The document url:https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator
3
votes
2
answers
203
views
Adding the run-code option to a new language in VSCode
I'm currently writing my own language and I'm at a point where I would like to publish it to the VSCode-Marketplace so people can test it.
I have written a language extension and a syntax highlighter ...
0
votes
0
answers
62
views
When trying to run PnP SPFx Yeoman generator I get this error message: 'The "data" argument must be of type string ...'
Here is the full message:
!!! Project needs to be upgraded !!!
Error @pnp/spfx
The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null
How ...
0
votes
0
answers
34
views
why do i have those yo generator code issues
I was trying to create a theme for visual studio code and after writing the installation code npm install i -g yo generator-code it gave me those errors
Do you know if I can resolve those errors?
npm ...
1
vote
4
answers
3k
views
Yeoman SPFx issue with installing @microsoft/sharepoint generator
I'm trying to learn how to use SPFx, however I'm falling down at the first step when it comes to running yo @microsoft/sharepoint.
I get the following error when running yo @microsoft/sharepoint:
...
1
vote
1
answer
159
views
Are CSS modules available for excel add-in using React?
I have created a reactjs project using the Yeoman office generator. I am trying to keep the components and the styling files together. Are css modules available for this type of projects? Below is my ...
0
votes
0
answers
168
views
Must use import to load ES Module: /usr/local/lib/node_modules/yo/node_modules/dateformat/lib/dateformat.js require() of ES modules is not supported
[15:54] Jasveer Singh
internal/modules/cjs/loader.js:1089
throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
^
Error [ERR_REQUIRE_ESM]: Must use import to load ES ...
0
votes
0
answers
122
views
A valid changelogDate is required to parse. JHIPSTER Date field
I am facing an issue while creating an Entity from the <Entity>.json file using command
jhipster entity Customer --skip-install --force
My .json file changelogDate and fieldType is as below
&...
-1
votes
1
answer
787
views
npm - yo - yeoman-environment/generator error
npm ERR! peer dep missing: yeoman-environment@^3.2.0, required by yeoman-generator@5.4.1
When I check the list of npm package available with command 'npm list -g --depth=0', I get the above mentioned ...
0
votes
0
answers
106
views
Facing issue with yo jhipster --force shell command
When we are trying to execute yo jhipster --force --skip-git --skip-install from jenkins shell job,
we are receiving the below output:
Easy with the sudo. Yeoman is the master around here.
since yo is ...
0
votes
1
answer
169
views
Deploy Outlook Add-in -Yeoman-
I need guidance for deploying an outlook add-in created by Yeoman.
I am new to this. I already tried uploading the whole project generated by Yeoman to Heroku and according to Heroku, it deployed ...
0
votes
1
answer
50
views
Deploy Outlook Desktop Add-in
I need to deploy an add-in created in yeoman on the outlook desktop.
How could I do it without using the local host?
Could it be done with an installer?
0
votes
1
answer
320
views
Nodejs not starting web service for office addin
Recently I jumped into creating office web add-ins and have created a couple using visual studio. But now, I have to change to creating add-in using NodeJS. I followed the official Microsoft ...
4
votes
0
answers
225
views
Yeoman won't recognize a generator installed globally or locally
I'm very new to Node.JS and Yeoman and can't figure out what is wrong. I'm cloning the repo https://github.com/ypmits/ARrrrLib/tree/develop which contains what it seems to be a node.js node and a ...
0
votes
1
answer
616
views
Sideload failing for web outlook add-in per official guide
Been developing a small add-in that was working fine... now I can't seem to get any local add-in project sideloaded from localhost as the MS guide describes! (https://docs.microsoft.com/en-us/office/...
7
votes
1
answer
4k
views
Pressing F5 is not working in VS code to open new window for debugging my custom theme
I have created a new custom theme using the Yoeman theme generated and now when I pressed on F5 to open a new Host Extension window of the custom theme it is actually showing me to select environment?
0
votes
0
answers
91
views
Multiple Distinct Microsoft Graph API Calls in Office Add-ins
I am working on a project which was generated with the Yeoman - Office Add-ins generator. The project is configured as a Word Web Add-In with has SSO (Single Sign-On) and is written in TypeScript. In ...
2
votes
0
answers
4k
views
grunt : Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
I have a problem in a grunt project. I was using node.js 8.x and it worked fine.
After I update node.js to 14.x I got this error.
Warning: Accessing non-existent property 'padLevels' of module ...
0
votes
1
answer
115
views
Any possible ways to add answer for this question "may we anonymously report usage statistics to improve the tool over time?" in .yo-rc.json
Is there any possible ways to add answer for this question "may we anonymously report usage statistics to improve the tool over time?", which is asked as the 1st question when I hit "yo ...
0
votes
0
answers
379
views
Gulp serve takes too long to build
After creating the project using yo teams and upon running the gulp serve command the command takes 1-2 mins to build on every save. I don’t know what is the main reason but I have disabled multiple ...
0
votes
0
answers
113
views
Get async variable return empty
I am trying to create an add-in for the outlook windows application.
The following code should copy the email body to the clipboard, but it doesn't do that.
I need to press the run button two times in ...
1
vote
1
answer
265
views
Is it possible to add Mac outlook custom addin for Desktop Mac
I have already created simple Mac outlook add in using yeoman tool from https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart?tabs=yeomangenerator
so my question is how to ...
5
votes
1
answer
255
views
Create yeoman generator with API's calls
I’ve created a Yeoman generator which works OK, now I need to extend it with additional two questions.
This questions I already have
async prompting() {
const prompts = [
{
name: "...
0
votes
1
answer
166
views
Deploy a nodejs excel addin as a pkg/exe
I have created an excel addin using yeoman generator and i would like to distribute this addin as a downloadable pkg/exe.
I came across few ways to publish and deploy office addin (https://docs....
1
vote
1
answer
143
views
How to get the active PowerPoint presentation from Excel in office.js?
I'm developing add-in that copy data from Excel to PowerPoint using Yeoman Generator for Office (office.js) but I can't get the opened PowerPoint presentation to write in it.
2
votes
1
answer
88
views
Where do Excel add in manifest files install to on Mac?
I have an Excel add in created using the Yeoman generator and I'm trying to find where add in manifests are installed to on the Mac file system.
I know when you sideload the add in the manifest is ...
1
vote
0
answers
35
views
How to create a dmg/pkg to install an Excel add-in created using Yeoman generator on Mac
I have an excel add-in created using the Yeoman generator and I'd like to distribute this as a downloadable dmg/pkg for others to use on Mac.
How can I create a dmg/pkg file to easily install the add-...
1
vote
0
answers
93
views
Cannot require('ffi') in my office javascript add-in custom functions
I have created a Excel Custom Function JS add-in by using Yeoman generator for Office Add-ins.
I have followed the template and tried to add one more custom functions in the ./src/functions/functions....
1
vote
1
answer
778
views
how to read ts file and update code dynamically using fs?
i am scaffolding new project using yeoman generator it is creating all the directories and running dependencies , now once files are generated i want to update js class same as appName,
first i am ...
0
votes
0
answers
78
views
Microsoft Teams: Making web parts built with App Studio for MS Teams available in Sharepoint
I'm in the process of converting several existing web parts (built in Visual Studio using the SharePoint Add-In project template) to work in Microsoft Teams. In a nutshell, there are 2 directions to ...
3
votes
1
answer
278
views
Yeoman invoke generator by code with args
I've having yeoman generator with sub generator.
I need to invoke the sub generator via code and I use the code below which is working, I see that the sub generator is invoked and I got the question ...
1
vote
1
answer
331
views
How to copy templates directory to destination using yeoman?
i have templates directory in yeoman that i want to copy to destination path with all the content it is throwing error that i have added to the question, is there better way to do achieve this task ?
...
2
votes
0
answers
46
views
How to copy directory to destination path using yeomon generator?
I have all the files in templates directory that needs to copy to destination path when i run command yo my-generator and in below index.js writing method i tried to copy templates to templates it ...
8
votes
1
answer
778
views
Yeoman generator add a new file generated exsiting project
I've yeoman generator which generate a simple sproject successfully.
I want that after the project generation, in latter time that the use will have the ability to generate a new file deployment.yaml ...
1
vote
1
answer
115
views
How do I troubleshoot an Javascript Office Addin (OneNote) created using Node.js and Yeoman?
I might be in way over my head but I thought this basic example should be easy to follow and test
https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/onenote-quickstar
Node.js and npm ...
0
votes
1
answer
164
views
how to pass a array of values to the template in the yeoman generator
I am using yeoman-generator, which I need to pass a array of value to the template file.
for example I want to pass a array of text values to the template.
install() {
async app() {
...
0
votes
1
answer
69
views
parsing the string into the json in the method of yeoman generator
I am using yeoman generator to create a code with the template, where the data for the template is passed in the option as a string showed as below,
yo express-no-stress myapp --data {"title":"Type"}...
0
votes
1
answer
28
views
yeoman-generator paused after prompt
I'm trying to write a generator.
It paused after printing app name in terminal.
How to let it executing the copyFile action ?
var Generator = require('yeoman-generator');
module.exports = class ...
2
votes
1
answer
280
views
What is the purpose of .yo-repository directory created with code generated by yeoman?
I was using a code generator that uses yeoman underneath. Recently, suddenly, started generating a .yo-repository directory.
I can't find what that is by a quick Google search.
Any help?