Git Product home page Git Product logo

react-fittext's People

Contributors

dan-dr avatar kennethormandy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-fittext's Issues

Accept PR of refactor to TypeScript + Hooks?

For the concern of compatibility, I refactored the code of this package to the fashion of TypeScript + Hooks and removed prop-types, but the API is identical, with some bugfixes, wondering if you would receive this as a pull request, or I have to publish another package.

Can "engines.node" removed from package.json?

yarn is panicking with error @kennethormandy/[email protected]: The engine "node" is incompatible with this module. Expected version "^8.x". when my node version is 9.8.0

Really annoying to add a --ignore-engines every time :)

Maybe "node": ">= 8.x" will work as well

Successive renders reapply compressor

If i resize the window with this component in with a compressor value of <0 the text keeps shrinking and shrinking until its almost invisible

The same for text that is >1.
Resizes cause it to grow and grow.

This issue didn't happen with react-fittext. (I'm trying to do a direct swap of your component with theirs.)

Upgrade to work with React 17?

Hi! I massively appreciate this plugin (it's the only one of its kind out there for React!) but I'm getting some issues with it in an app running react 17 — I was wondering if it would be a big job to fix the fact that it seemingly requires no higher than react 16, if I understand correctly.

Could not resolve dependency:
npm ERR! peer react@"^16.x" from @kennethormandy/[email protected]

I would love to help myself or suggest a PR but my front end skills are limited to frontend frontend and I'm a bit out of my depth on this 😅
Thanks!

Unable to install package using npm

I am using React version 18.2.0. when i try to install this package in my project, error occurs and this log is generated.

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\ProgramData\nvm\v16.15.1\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:<REPO_PATH>\.npmrc Completed in 0ms
10 timing config:load:project Completed in 4ms
11 timing config:load:file:<REPO_PATH>\.npmrc Completed in 0ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Program Files\nodejs\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 14ms
19 timing npm:load:configload Completed in 14ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 0ms
22 verbose title npm install @kennethormandy/react-fittext
23 verbose argv "install" "--save" "@kennethormandy/react-fittext"
24 timing npm:load:setTitle Completed in 2ms
25 timing config:load:flatten Completed in 3ms
26 timing npm:load:display Completed in 5ms
27 verbose logfile logs-max:10 dir:C:\Users\<USERNAME>\AppData\Local\npm-cache\_logs
28 verbose logfile C:\Users\<USERNAME>\AppData\Local\npm-cache\_logs\2022-06-22T17_15_03_980Z-debug-0.log
29 timing npm:load:logFile Completed in 7ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 30ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 2 files
35 silly logfile done cleaning log files
36 timing idealTree:init Completed in 801ms
37 timing idealTree:userRequests Completed in 4ms
38 silly idealTree buildDeps
39 silly fetch manifest @kennethormandy/react-fittext@*
40 timing arborist:ctor Completed in 1ms
41 http fetch GET 200 https://registry.npmjs.org/@kennethormandy%2freact-fittext 687ms (cache hit)
42 silly fetch manifest react@^18.2.0
43 http fetch GET 200 https://registry.npmjs.org/react 15ms (cache hit)
44 silly fetch manifest react@^16.x
45 timing idealTree Completed in 1532ms
46 timing command:install Completed in 1548ms
47 verbose stack Error: unable to resolve dependency tree
47 verbose stack     at Arborist.[failPeerConflict] (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1428:25)
47 verbose stack     at Arborist.[loadPeerSet] (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1394:34)
47 verbose stack     at async Arborist.[buildDepStep] (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:976:11)
47 verbose stack     at async Arborist.buildIdealTree (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:218:7)
47 verbose stack     at async Promise.all (index 1)
47 verbose stack     at async Arborist.reify (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:153:5)
47 verbose stack     at async Install.exec (C:\ProgramData\nvm\v16.15.1\node_modules\npm\lib\commands\install.js:156:5)
47 verbose stack     at async module.exports (C:\ProgramData\nvm\v16.15.1\node_modules\npm\lib\cli.js:78:5)
48 verbose cwd C:\Users\abhis\Documents\abhishek0010.github.io
49 verbose Windows_NT 10.0.22000
50 verbose node v16.15.1
51 verbose npm  v8.11.0
52 error code ERESOLVE
53 error ERESOLVE unable to resolve dependency tree
54 error
55 error While resolving: �[1m<REPO>�[22m@�[1m0.1.0�[22m
55 error Found: �[1mreact�[22m@�[1m18.2.0�[22m�[2m�[22m
55 error �[2mnode_modules/react�[22m
55 error   �[1mreact�[22m@"�[1m^18.2.0�[22m" from the root project
55 error
55 error Could not resolve dependency:
55 error �[35mpeer�[39m �[1mreact�[22m@"�[1m^16.x�[22m" from �[1m@kennethormandy/react-fittext�[22m@�[1m0.6.0�[22m�[2m�[22m
55 error �[2mnode_modules/@kennethormandy/react-fittext�[22m
55 error   �[1m@kennethormandy/react-fittext�[22m@"�[1m*�[22m" from the root project
55 error
55 error Fix the upstream dependency conflict, or retry
55 error this command with --force, or --legacy-peer-deps
55 error to accept an incorrect (and potentially broken) dependency resolution.
55 error
55 error See C:\Users\<USERNAME>\AppData\Local\npm-cache\eresolve-report.txt for a full report.
56 verbose exit 1
57 timing npm Completed in 1693ms
58 verbose unfinished npm timer reify 1655918104107
59 verbose unfinished npm timer reify:loadTrees 1655918104119
60 verbose unfinished npm timer idealTree:buildDeps 1655918104927
61 verbose unfinished npm timer idealTree:#root 1655918104927
62 verbose code 1
63 error A complete log of this run can be found in:
63 error     C:\Users\<USERNAME>\AppData\Local\npm-cache\_logs\2022-06-22T17_15_03_980Z-debug-0.log

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.