Giter VIP home page Giter VIP logo

Comments (6)

fooloomanzoo avatar fooloomanzoo commented on June 21, 2024
  • Which version of Polymer 1 are you using? Is it 1.9.2 or above?
  • Are you using the newest Polymer-Cli for testing?
  • Do you extend <datetime-picker> or are you using it in a template?
  • Do you test in a custom demo or in that one of <datetime-picker>?

The exceptions you had are all related to polymer itself, a.s.o. are part of polymer itself. You could try at first, to update polymer-cli and see what happens. But I look into it!

from datetime-picker.

diregraph avatar diregraph commented on June 21, 2024
  • It is 1.9.2+. Actually 2.x.x

  • Yes I am using the latest Polymer-CLI

  • Using it in a template

  • Custom demo

If it is not too much of a trouble, Is it okay if I share with you the repo so that you may take a look?

from datetime-picker.

fooloomanzoo avatar fooloomanzoo commented on June 21, 2024

Shure, would be interesting

from datetime-picker.

diregraph avatar diregraph commented on June 21, 2024

mrs-datetime-picker

Thank you mate!

from datetime-picker.

fooloomanzoo avatar fooloomanzoo commented on June 21, 2024

The server of polymer-cli can not handle absolute import paths because it serves when developing a component as if all resources of the local bower_components are above the rootDir, so that when installed to a project the fileSystem is coherent. Probably the code transpilation is then mixed up.

Instead of:

<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="./bower_components/datetime-picker/overlay-date-picker.html">
<link rel="import" href="./bower_components/datetime-picker/overlay-time-picker.html">
<link rel="import" href="../iron-icons/iron-icons.html">

you need to import all dependencies relatively:

<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../datetime-picker/overlay-date-picker.html">
<link rel="import" href="../datetime-picker/overlay-time-picker.html">
<link rel="import" href="../iron-icons/iron-icons.html">

Then the demo is working. In polymer 3 the <link rel="import" href="...">-system will supposed to be replaced. Tip: have a look at the style mixins and properties of <datetime-picker> and <number-element> to customize your element.

from datetime-picker.

diregraph avatar diregraph commented on June 21, 2024

That worked. Thank you @fooloomanzoo, much appreciated!

from datetime-picker.

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.