GithubHelp home page GithubHelp logo

m.e.i.n.e.l for statistics about jenz HOT 2 OPEN

openhpi avatar openhpi commented on July 2, 2024
m.e.i.n.e.l for statistics

from jenz.

Comments (2)

flowirtz avatar flowirtz commented on July 2, 2024

Well...
Here is the deal: I attempted to include the meinel-components in multiple ways now. The most promising seems to be following this guide.
Apart from the guide being kinda outdated and not working fully, especially the delay in loading by using main-polymer.ts the polymer cli complains about the missing bootstrapModule (fixed below), I am facing one major issue:

The major issue

ERROR in Error encountered resolving symbol values statically. Calling function 'PolymerElement', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /Users/ping/Desktop/Git/jenz/src/app/app.module.ts, resolving symbol AppModule in /Users/ping/Desktop/Git/jenz/src/app/app.module.ts

which basically means that PolymerElement('barchart-basic') in app.module.ts fails.

If you google that, you get a couple hints, but angular-cli guys basically say that this won't be supported anymore. A bummer.

How to fix

Either, figure out a way to bypass the mentioned error (maybe by exporting them by hand), or find a completely different way to turn Polymer components into angular2 ones in general.

Every change leading to this error is shown in the add-meinel branch.

from jenz.

flowirtz avatar flowirtz commented on July 2, 2024

How to bypass bootstrapModule() missing

This. is. ugly.
Yes.
But it works and I don't see a better way atm thanks to angular cli.

// Ugly hack to convince Angular CLI that we call bootstrapModule somewhere
const hackThis = false;
if (hackThis) {
  platformBrowserDynamic().bootstrapModule(AppModule);
}

in main-polymer.ts

from jenz.

Related Issues (20)

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.