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.

Is this only a global or does it work with webpack/browserify?

See original GitHub issue

Don’t see anything about require('frappe-charts') or import Chart from 'frappe-charts'

Is the only way to use this to have a script tag on the page and have a global Chart object?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
eevecommented, Nov 4, 2017
import Chart from 'frappe-charts/dist/frappe-charts.min.esm'
1reaction
pratu16x7commented, Nov 4, 2017

@davidguttman @egoist @gwillz So we’ve made it importable; as @eeve mentioned earlier, we’ve included the es and cjs builds as well in the /dist folder. Try it out at https://npm.runkit.com/frappe-charts.

screen shot 2017-11-04 at 3 10 13 pm

We will be working on the namespacing next.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack or Browserify & Gulp: Which Is Better?
Simply put, Webpack is such a powerful tool that it can already perform the vast majority of the tasks you'd otherwise do through...
Read more >
Browserify vs Webpack
Webpack attacks the build problem in a fundamentally more integrated and opinionated manner. In Browserify you use Gulp/Grunt and a long list ...
Read more >
Accessing "public" members after bundling with browserify ...
You're trying to access App in the global context. However, App is not made available globally by default. Node.js makes use of modules,...
Read more >
Browserify vs Webpack | Comparison Table with Infografic
This is a guide to Browserify vs Webpack. Here we discuss the key differences with infographics and comparison table of Browserify vs Webpack....
Read more >
Journey from browserify to webpack | by Lost in Space
I would say, it makes JavaScript modules management works like a charm. No matter its a CommonJS/AMD/global module, webpack could easily bundle them ......
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