Skip to content

"view_menu" cannot found when Compiling NewBing #1

Description

@shey-kail

here is errors i get:
error[E0425]: cannot find value view_menu in this scope
--> src/app/menu.rs:41:51
|
41 | Menu::new().add_submenu(app_menu).add_submenu(view_menu)
| ^^^^^^^^^ not found in this scope

warning: unused imports: CustomMenuItem, MenuItem
--> src/app/menu.rs:1:13
|
1 | use tauri::{CustomMenuItem, Manager, Menu, MenuItem, Submenu, WindowMenuEvent};
| ^^^^^^^^^^^^^^ ^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

For more information about this error, try rustc --explain E0425.
warning: NewBing (bin "NewBing") generated 1 warning
error: could not compile NewBing due to previous error; 1 warning emitted
Error failed to build app: failed to build app
 ELIFECYCLE  Command failed with exit code 1.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions