-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wails dev
fails when running on vue-ts
template with latest nodejs version
#3233
Labels
Bug
Something isn't working
Comments
hamza-m-masood
changed the title
Feb 4, 2024
wails dev
fails when running on vue-ts template with latest nodejs versionwails dev
fails when running on vue-ts
template with latest nodejs version
I believe this is due to vue-tsc being an older version in the template try updating to a later version. Was able to reproduce issue on my machine and updating vue-tsc to |
Thanks that fixed it! |
Merged
rivy
added a commit
to rivy-t/my-app
that referenced
this issue
Mar 19, 2024
# [why] `wails` fails to build the frontend in the previous configuration. This seems to be a combination or interaction failure. First, it seems that `wails` doesn't execute the frontend build command (`pnpm exec vue-tsc --noEmit && pnpm exec vite build`) correctly. When executed, the internal `&&` is ignored and the script line is executed as a single command unit. This causes `vue-tsc` to attempt interpretation of all subsequent words as arguments and files to compile. The command then fails with multiple errors ("error TS6231: Could not resolve the path '&&' with the extensions: '.ts', '.tsx', '.d.ts', '.cts', '.d.cts', '.mts', '.d.mts'" for all the later words in the command ['&&', 'pnpm', 'exec', 'vite', and 'build']). This occurs even if all related commands/packages ('pnpm', 'vue-tsc', 'wails', ...) are updated to the most recent versions. ## possibly related conversations/issues - [ERROR TS6231 - Could not resolve the path...](https://stackoverflow.com/questions/68970633/error-ts6231-could-not-resolve-the-path-with-the-extensions-ts-tsx) - [wails ~ `wails dev` fails when running on vue-ts template](wailsapp/wails#3233) - [wails ~ cannot build vue-ts based project](wailsapp/wails#1796)
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I received this error when executing
wails dev
on thevue-ts
template:To Reproduce
node version: v20.11.0
wails version: v2.7.1
I ran this command:
wails init -t vue-ts -n hamza
then I entered the generated folder and ran this command:
wails dev
Expected behaviour
I expect the
wails dev
command to function correctly without errors.Screenshots
No response
Attempted Fixes
I attempted various version of nodejs and wails. I was not able to run
vue-ts
template successfully.System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: