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

Npx should be precise in package.json for Linux environnement #35

Open
MehdiBenbahri opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@MehdiBenbahri
Copy link

Hi there,

I have deploy you boilerplate in a fresh ubuntu server. When i ran npm run build the console goes Brrrr, and an error occured (unexped token '('... ).

This error was here because in the package.json, in the "typecheck" script, tsc is called directly, to avoid other issue i suggest you should change this script from :

"typecheck": "tsc --noEmit -p client/tsconfig.json && tsc --noEmit -p server/tsconfig.json",
to
"typecheck": "npx tsc --noEmit -p client/tsconfig.json && npx tsc --noEmit -p server/tsconfig.json",

This change assures us that it will call tsc correctly and then build everything correctly. Don't forget by default that those who made Linux are not like us, they will always make something that works but without any ergonomics.

Hoping to help you, and thank you again for your boilerplate.

@MehdiBenbahri MehdiBenbahri changed the title Npx should be marked in package.json in ubuntu Npx should be precise in package.json for Linux environnement Oct 4, 2023
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