question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing withResponsiveness() helper

See original GitHub issue

Hi Guys. Could you advise on the intended way to import the withResponsiveness helper?

Current Behaviour

In the docs it uses a relative import, which I assume is because you compile your docs examples (nice)

screen shot 2018-12-05 at 7 37 41 am

I’ve found the compiled version in britecharts-react/lib/esm/helpers and the below code works fine, but is quite long-winded:

import withResponsiveness from 'britecharts-react/lib/esm/helpers/withResponsiveness';

Expected Behaviour

I would like to import withResponsiveness() from the root, so:

import { Bar, withResponsiveness } from 'britecharts-react';

Possible Solution

Happy to submit a PR to fix this, just let me know 😃

Your Environment

  • Version used: 0.4.1 with TypeScript 3.1 and React 16.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Golodhroscommented, Dec 11, 2018

Hi @juanpaucar,

I just released 0.5.1 with this fix, it should be ready in NPM soon!

1reaction
davegomezcommented, Dec 4, 2018

Since is an option we have for the charts and is a feature listed in the docs I think it should be included or at least well referenced in the docs, but first I think we should fix the issue #105 that is still happening in britecharts-react v0.5.0 as you can confirm in this test project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing helper functions in Serverless - Stack Overflow
I want to import a helper function into a Node.js Lambda function in Serverless (AWS). I've tried using Layer functions, ...
Read more >
Importing Student Data - Handshake Help Center
Importing student data is a vital step in implementing Handshake. It's the most efficient way to ensure you're populating accurate...
Read more >
import() - JavaScript - MDN Web Docs - Mozilla
The import() syntax, commonly called dynamic import, is a function-like expression that allows loading an ECMAScript module asynchronously ...
Read more >
Using AngularJS helper provided in the Responsive Coaches ...
The helper functions are used by the out-of-the-box responsive coaches, ... For more information, see Importing toolkits from the Process Center console.
Read more >
NetSuite Applications Suite - Permissions for Importing ...
Items Available to the Item Search API · The Base URL · Item Search API Input Parameters · Item Search API Output Response...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found