Reputation: 107
I'm trying to following this official tutorial : Prepare your development environment Develop a tool extension
However I can't even create a project based on the template, cuz a lint config file is missing.
nvm install 16.20.2
nvm use 16.20.2
npm install -g @angular/[email protected]
npm install -g gulp
npm install -g typescript
npm install -g tslint
npm install -g @microsoft/windows-admin-center-sdk@latest
cd \
cd users
cd .\Fabien\
wac create --company "BaguetteBytes Innovations" --tool "thot-manager" --version latest
It throws
Created ./thot-manager
node:internal/fs/utils:347
throw err;
^
Error: ENOENT: no such file or directory, copyfile 'C:\Users\Fabien\AppData\Local\nvm\v16.20.2\node_modules\@microsoft\windows-admin-center-sdk\tools\module-template\\.eslintrc.json' -> './thot-manager\.eslintrc.json'
at Object.copyFileSync (node:fs:2847:3)
at ExtensionCreator.createHelper (C:\Users\Fabien\AppData\Local\nvm\v16.20.2\node_modules\@microsoft\windows-admin-center-sdk\tools\wac-cli\src\create\main.js:62:32)
at ExtensionCreator.create (C:\Users\Fabien\AppData\Local\nvm\v16.20.2\node_modules\@microsoft\windows-admin-center-sdk\tools\wac-cli\src\create\main.js:40:18)
at Object.<anonymous> (C:\Users\Fabien\AppData\Local\nvm\v16.20.2\node_modules\@microsoft\windows-admin-center-sdk\tools\wac-cli\src\index.js:17:13)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {
errno: -4058,
syscall: 'copyfile',
code: 'ENOENT',
path: 'C:\\Users\\Fabien\\AppData\\Local\\nvm\\v16.20.2\\node_modules\\@microsoft\\windows-admin-center-sdk\\tools\\module-template\\\\.eslintrc.json',
dest: './thot-manager\\.eslintrc.json'
}
I've tried to :
It's a real probleme because when I'm trying to build with gulp build
[12:52:26] Starting 'lintApp'...
[12:52:29] 'lintApp' errored after 2.76 s
[12:52:29] Error in plugin "gulp-eslint-new"
Message:
No ESLint configuration found in C:\users\Fabien\thot-manager\src.
Details:
messageTemplate: no-config-found
messageData: [object Object]
How can I compile my extension ?
Upvotes: 0
Views: 16