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

Errors in using the built min version #351

Open
Nucy666 opened this issue Dec 24, 2024 · 1 comment
Open

Errors in using the built min version #351

Nucy666 opened this issue Dec 24, 2024 · 1 comment

Comments

@Nucy666
Copy link

Nucy666 commented Dec 24, 2024

When I call the addView method of the tabview component, an error occurs:Uncaught TypeError: Cannot read properties of undefined (reading 'hidden')
The demo code:

webix.ui({
    height: 350,
    view: "tabview",
    id: 'testTabview',
    cells: [
        {
            header: "title1",
            body: {
                template: "1"
            }
        }
    ]
}, $$("demo"));
$$('testTabview').addView({
    header: "title2",
    body: {
        template: "2"
    }
})

The webix version is 11.0.0

@Nucy666
Copy link
Author

Nucy666 commented Dec 25, 2024

I solved the problem

	if (mode === "min"){
		plugins.push(uglify({
			mangle:{
				properties:{ regex:/^_(?!id$).*$/ },
				reserved:["log", "assert"]
			},
			compress: {
				pure_funcs:["log", "assert"],
				module: false//Add the option
			}
		}));
	}

@Nucy666 Nucy666 closed this as completed Dec 25, 2024
@Nucy666 Nucy666 reopened this Dec 25, 2024
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