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

Disabling premium features gives an error "Path to the script is not specified" #63

Open
deep-space-explorer opened this issue May 20, 2024 · 0 comments

Comments

@deep-space-explorer
Copy link

deep-space-explorer commented May 20, 2024

Disabling premium features gives an error "Path to the script is not specified".
Code below:

Config config = new Config();
List<Constants.Plugins> plugins = List.of(Constants.Plugins.ExportPdf, Constants.Plugins.ExportWord);//premium feature which needs a license
config.setRemovePlugins(plugins);


VaadinCKEditor classicEditor = new VaadinCKEditorBuilder().with(builder -> {
	builder.editorData = "This is a classic editor sample.";
	builder.editorType = Constants.EditorType.CLASSIC;
	builder.theme = Constants.ThemeType.DARK;
	builder.config = config;
}).createVaadinCKEditor();

error:
Error: Path to the script is not specified. at JS._validateSrc (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16562:1478) at new JS (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16562:1276) at yt._loadWscbundle (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16747:1923) at yt.init (VAADIN/build/generated-flow-imports-CYMl0Y6c.js:16747:982)

How to correctly disabe premium features?

With premium features turned on everyting works fine!

In application.properties I have:
vaadin.allowed-packages=com.vaadin,org.vaadin,dev.hilla,com.wontlost

@deep-space-explorer deep-space-explorer changed the title Disabling premiium features gives an error "Path to the script is not specified" Disabling premium features gives an error "Path to the script is not specified" May 21, 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