extensions-api
extensions-api copied to clipboard
Command "." not found when running "npm run tslint"
Describe the issue
When doing the getting started guide https://tableau.github.io/extensions-api/docs/trex_getstarted.html
the npm run build process fails. It's because of npm run tslint
Error:
> [email protected] tslint
> ./node_modules/.bin/tslint --config ./tslint.json ./Samples-Typescript/*/*.ts*
Der Befehl "." ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Translated error message: The command "." is either misspelled or could not be found.
Things I have tried:
- using both extensions-api-sdk: 1.10.0 and 1.9.0
- reproduce the situation and same error on a windows10 machine of a colleague
- using git clone instead of the zip download
- restart
- deleting node_modules and execute
npm iagain - checking if the file in node_modules exists (does)
- uninstalling possible global tslint installation
- I tried to execute
./node_modules/.bin/tslint --config ./tslint.json ./Samples-Typescript/*/*.ts*myself and got an windows permission error which directed me to this page: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3 Once I executedSet-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachinein PowerShell I did't get the error when executing manually. But the error persists when executing through npm run build
Version information:
- Tableau version: 2023.03
- OS: Win 11home 22H2 build22621.2428
- VsCode: 1.84.1 (user setup)
- Node.js: 18.15.0
- V8: 11.4.183.29-electron.0
- extensions-api-sdk: 1.10.0
Steps to reproduce (please include a code snippet, if possible):
- Go to https://tableau.github.io/extensions-api/docs/trex_getstarted.html
- Do the guide
npm run build
I think there is an issue with my dev setup and would appreciate any help. Thanks!