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

cant build after update #2

Closed
The-Mr-L opened this issue Feb 20, 2022 · 8 comments
Closed

cant build after update #2

The-Mr-L opened this issue Feb 20, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@The-Mr-L
Copy link

The-Mr-L commented Feb 20, 2022

hey I think the problem is related to this project ?

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\xxxx\Desktop\project\app\x\node_modules\.pnpm\vite-plugin-tauri@1.1.0_a51533014e25e427fd41fc3dc0737403\node_modules\@tauri-apps\cli\main' imported from C:\Users\xxxx\Desktop\project\app\x\node_modules\.pnpm\vite-plugin-tauri@1.1.0_a51533014e25e427fd41fc3dc0737403\node_modules\vite-plugin-tauri\bin\vite-tauri.js
Did you mean to import @tauri-apps+cli@1.0.0-rc.5/node_modules/@tauri-apps/cli/main.js?
    at new NodeError (internal/errors.js:322:7)
    at finalizeResolution (internal/modules/esm/resolve.js:308:11)
    at moduleResolve (internal/modules/esm/resolve.js:731:10)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:842:11)
    at Loader.resolve (internal/modules/esm/loader.js:89:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:76:40)
    at link (internal/modules/esm/module_job.js:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
 ELIFECYCLE  Command failed with exit code 1.

I am using:
Deps:
"@tauri-apps/api": "^1.0.0-rc.1",
DevDeps:
"vite-plugin-tauri": "^1.1.0",
"@tauri-apps/cli": "^1.0.0-rc.5",

@amrbashir
Copy link
Owner

Can you provide a minimal repro or steps to produce? I will try to look into this asap.

@amrbashir amrbashir added the bug Something isn't working label Feb 20, 2022
@amrbashir
Copy link
Owner

Fixed in v1.1.1

@The-Mr-L
Copy link
Author

hi, well now I get this
[vite-plugin-tauri] Starting Tauri...
thread '' panicked at 'Couldn't recognize the current folder as a Tauri project. It must contain a tauri.conf.json or tauri.conf.json5 file in any subfolder.', src\helpers\app_paths.rs:64:4
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

It seams we not in src-tauri?

@The-Mr-L
Copy link
Author

when I run dev

@amrbashir
Copy link
Owner

This looks like an issue with tauri's cli and not the plugin.

Can you show your folder structure just to be sure?

@The-Mr-L
Copy link
Author

yes, my project folder is
dist
node_modules
public
srs
src-tauri

@The-Mr-L
Copy link
Author

The-Mr-L commented Feb 21, 2022

well if this is not an issue with this project then thank you for fixing the first* step :)

@The-Mr-L
Copy link
Author

okay I tried moving the tauri.conf.json to the root foler of the project and I get this
[vite-plugin-tauri] Error: Input watch path is neither a file nor a directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants