Code Monkey home page Code Monkey logo

styled-spinkit's Issues

Component Circle doesn't work

Hi, component Circle doesn't work.

Error message: Warning: Received NaN for the 'transform' attribute. If this is expected, cast the value to a string..

My component: <Circle color='#333' size={40} />.

Error with importing react

I think you should be using import * as React from 'react';.

ERROR in [at-loader] ./node_modules/styled-spinkit/dist/ChasingDots/index.d.ts:1:8 
    TS1192: Module '"/home/cmcdragonkai/Projects/inverter-analysis/node_modules/@types/react/index"' has no default export.

Components seem to crash my app

Are there any issues using this with CRA or styled-component 3.x?

I am trying something very simple and it seems to crash my app every time.

import {FoldingCube} from 'styled-spinkit'

const Loading = () => {
  return (
    <LoadingArea center>
      <FoldingCube color="blue" size="30"/>
    </LoadingArea>
  )
}

The above code sends Chome into a panic and pings my CPU. Any thoughts?

Possible bug in configuration

  • version: 0.2.0
  • node version: 8.9.4
  • npm (or yarn) version: npm 5.6.0

Do you want to request a feature or report a bug?:
Bug

What is the current behavior?:
The getRange function, which is used in FadingCircle, WaveLoading, and Circle, is returning an array containing one element of type Array Iterator. It appears that the addition of {loose: true} option for the babel-preset-env in the rollup config is causing the toConsumableArray function to be removed from the bundled script.

The getRange function in dist/styled-spinkit.es.js with {loose: true}:

var getRange = function getRange(n) {
  return [].concat(Array(n).keys());
};

The getRange function in dist/styled-spinkit.es.js without {loose: true}:

var getRange = function getRange(n) {
  return [].concat(toConsumableArray(Array(n).keys()));
};

What is the expected behavior?:
The getRange function should return an array of n elements with values 0 to n-1.

Suggested solution:
I don't know all the ins and outs of bundling and rollup configuration, but here are 2 changes that worked for me:

  • Remove the {loose: true} key/value pair from babel-preset-env options.
    and/or
  • Replace [...Array(n).keys()] with Array.from(Array(n).keys()) in the getRange function.

Round-to incompatible with IE11

Hi,

First of all, thanks for this project.

I am currently working on my website on IE11, and it seems that the JS in the website crash because of this library, and in particular, the dependency round-to, they know about it ( see sindresorhus/round-to#14) , but there is no real solution because round-to is a library meant to be use in node.js, and not in a browser.
Could you tell me why use round-to instead of Math.round ?

  • version:
  • node version: 10.15.3
  • yarn version: 1.12.1

Do you want to request a feature or report a bug?:
Bug

What is the current behavior?:
When I use styled-spinkitwith IE11, it does not work.

What is the expected behavior?:
I should be able to use the library in IE11

Suggested solution:

  • Try to replace roundTo by basic Math.round
  • Try another library to perform this job

I'll try to submit a PR if we find a solution.
Thanks for your help :)

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

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.