Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "." not found when running "npm run tslint" #530

Open
josefhuelk opened this issue Nov 7, 2023 · 0 comments
Open

Command "." not found when running "npm run tslint" #530

josefhuelk opened this issue Nov 7, 2023 · 0 comments

Comments

@josefhuelk
Copy link

josefhuelk commented Nov 7, 2023

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 i again
  • 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 executed Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine in 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):

  1. Go to https://tableau.github.io/extensions-api/docs/trex_getstarted.html
  2. Do the guide
  3. npm run build

I think there is an issue with my dev setup and would appreciate any help. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant