Giter Site home page Giter Site logo

bundles's Introduction

bundles's People

Contributors

artur- avatar manolo avatar platosha avatar sissbruecker avatar taefi avatar vaadin-bot avatar web-padawan avatar zhesun88 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

taefi

bundles's Issues

Vite: duplicate custom element definition when using Material theme

Description of the bug

When using Material theme, the application fails in development mode with the following error:

VM82:6 Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "vaadin-material-styles" has already been used with this registry
    at window.customElements.define (http://localhost:8080/:6:760)
    at http://localhost:8080/VAADIN/@fs/Users/serhii/vaadin/tmp/my-app/node_modules/@vaadin/vaadin-material-styles/version.js?v=3aeb5b09:12:16

Minimal reproducible example

Place this to a new project from https://start.vaadin.com and delete frontend/themes folder.

package com.example.application;

import com.vaadin.flow.component.dependency.NpmPackage;
import com.vaadin.flow.component.page.AppShellConfigurator;
import com.vaadin.flow.server.PWA;
import com.vaadin.flow.theme.Theme;
import com.vaadin.flow.theme.material.Material;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * The entry point of the Spring Boot application.
 *
 * Use the @PWA annotation make the application installable on phones, tablets
 * and some desktop browsers.
 *
 */
@SpringBootApplication
@Theme(themeClass = Material.class)
@PWA(name = "My App", shortName = "My App", offlineResources = {})
@NpmPackage(value = "line-awesome", version = "1.3.0")
@NpmPackage(value = "@vaadin-component-factory/vcf-nav", version = "1.0.6")
public class Application implements AppShellConfigurator {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}

Expected behavior

There should not be an error thrown when using Material theme.

Actual behavior

An error is thrown in the console, and the UI does not open.
I guess this could be caused by using @vaadin/bundles.

Versions:

- Vaadin / Flow version: 23.2.2
- Java version: 11
- Development or production mode: development mode

Licenses missing?

The @vaadin/bundles npm package indirectly includes two npm packages which have a licenses declared in their package.json, however the actual licenses including the copyright notices are nowhere to be found.

image
https://www.npmjs.com/package/webfont-matcher
The package.json says it uses an MIT license, however neither the read-me file nor the github repository listet as the website/repository contain this license.

image
The same goes for @mapbox/mapbox-gl-style-spec, it lists an ISC however the repository/website containing the actual artifact does not seem to contain said license. https://www.npmjs.com/package/@mapbox/mapbox-gl-style-spec https://github.com/mapbox/mapbox-gl-js the actual npm artifact tough seems to be located here, there is no separate license for this tough and the repositories license does not seem to permit any usage without an account.

@webcomponents/shadycss was released 7 days ago, apparently breaking the bundle

[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - @vaadin/bundles has version mismatches with installed packages, Vaadin component dependency bundles are disabled.
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - Packages with version mismatches: [
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker -   {
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker -     "name": "@webcomponents/shadycss",
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker -     "bundledVersion": "1.11.0",
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker -     "installedVersion": "1.11.1"
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker -   }
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - ]
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.