Skip to content

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

@deep-space-explorer

Description

@deep-space-explorer

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

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