Comments (2)
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.
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)
- Create Data Cache
- Map Improvements
- Export reviews to file HOT 1
- Implement https://github.com/izupet/angular2-counto
- Check for production status HOT 4
- Arrows for navigation at review component.
- Fix Travis CI build process for deployment HOT 1
- Migrate Travis administration to openHPI HOT 2
- Fix platform-independent deployment HOT 3
- Promo Numbers
- When all platforms are selected, use HPI primary color. HOT 1
- Lower the openSAP baseline. HOT 1
- Course-Component HOT 1
- Reviews
- Map HOT 1
- Get us the ÖA hardware. HOT 1
- ROADMAP aka. Ugly Issue collection HOT 1
- Course Carousel HOT 1
- Interactivity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenz.