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
Failed to execute 'define' on 'CustomElementRegistry' #6469
Comments
Try running |
Seems like there are not duplicates:
|
Maybe it's something with the imports of my component? import { LitElement, TemplateResult, CSSResult, css, html, customElement, property, unsafeCSS } from 'lit-element';
import { cssFromModule } from '@polymer/polymer/lib/utils/style-gather';
import '@polymer/iron-media-query';
import '@vaadin/vaadin-lumo-styles/style.js';
import '@vaadin/vaadin-lumo-styles/color.js';
import '@vaadin/vaadin-lumo-styles/sizing.js';
import '@vaadin/vaadin-lumo-styles/spacing.js';
import '@vaadin/vaadin-lumo-styles/typography.js';
import '@vaadin/vaadin-tabs';
/**
* The main layout of the app.
*/
@customElement('axians-app-layout')
export class AxiansAppLayout extends LitElement {
static get styles(): CSSResult[] {
return [unsafeCSS(cssFromModule('lumo-color')),
unsafeCSS(cssFromModule('lumo-typography')), css`
:host {
display: flex;
flex-direction: column;
min-height: 100vh;
}
:host([hidden]) {
display: none !important;
}
/* ... */
`];
}
/* ... */
} |
|
Maybe it's a Webpack issue? Is it possible to run the app without bundles? |
@heruan Would you please provide a minimal example on how to reproduce this issue? |
@mehdi-vaadin Sure, this project reproduces: https://github.com/heruan/vaadin-npm
Then goto http://localhost:8080 and look at the console. |
@mehdi-vaadin Did you succeed to reproduce? Any workaround is welcome! |
It gives me this error:
There is no public |
@mehdi-vaadin Sorry, my fault. Should be public now! |
Now, I could reproduce it. Your problem seems to be caused by the fact that you are using two different versions of Polymer, 3.0.0 and 3.3.0. Since Vaadin doesn't support Polymer 3.3.0 yet (See |
Okay, thanks! Can I use 3.0.0 just when running the Vaadin app, without downgrading in the components? |
I'm not sure about that. Maybe. Please try it and share your finding with us ;) |
I mean, I don't know how to "use Polymer 3.0.0" in my components. I don't really depend on it, just on |
According to your
|
@heruan did you manage to fix the problem? Can this issue be closed? |
Yeah, downgrading to Polymer 3.0.0 fixed the issue. I'll follow-up on #6009 to know when I can upgrade again! Thanks Mehdi! |
With both 14.0.5 and 15.0.0.alpha1 my app won't load and throws this client exception:
I've found Polymer/polymer#5407 but I'm not sure how apply the workaround with Vaadin. Also, removing
node_modules
andpackage-lock.json
isn't helping!The text was updated successfully, but these errors were encountered: