Comments (9)
@arangates I was able to get this to work by specifying a relative path (see: vercel/next.js#883).
ie ../node_modules/frappe-charts/dist/frappe-charts.min.esm
from charts.
@tobiaslins Would you like to take a look?
from charts.
hi @ronihcohen
Can you please share more details?
- What did you exactly import?
- Please show me your package.json
from charts.
@tobiaslins You can find my example here: https://github.com/ronihcohen/frappe-charts-next-example
from charts.
@ronihcohen Seems like an import problem; check the module path on line:
https://github.com/tobiaslins/frappe-charts-react-example/blob/master/src/chart.js#L3
with the one in your repo:
https://github.com/ronihcohen/frappe-charts-next-example/blob/master/components/chart.js#L3
from charts.
@pratu16x7 still not working :-(
Unexpected token export
/frappe-charts-next-example/node_modules/frappe-charts/dist/frappe-charts.min.esm.js:3270
export default Chart;
^^^^^^
SyntaxError: Unexpected token export
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:576:28)
at Module._compile (/frappe-charts-next-example/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:556:17)
at require (internal/module.js:11:18)
Also I would update the README.md https://github.com/tobiaslins/frappe-charts-react-example/blob/master/README.md with the proper import. @tobiaslins
from charts.
@ronihcohen I thought nextjs does the transpiling, not sure why it doesn't know export
from charts.
Not a next.js
expert here. Closing as not a project-specific issue. Feel free to open in case of updates.
from charts.
Still exists
from charts.
Related Issues (20)
- trancateLegends HOT 1
- A Year-wise Heatmap HOT 2
- How to create combo chart with Dual Y-Axis HOT 1
- Commas to large numbers HOT 1
- Donut chart vertical legend cut off HOT 2
- Bug: adding `lineOptions: { spline: 1 }` leads to a console error HOT 1
- Implement measures and style overrides HOT 1
- Hide parts of a dataset HOT 7
- how to implement a horizontal bar? HOT 1
- Line chart y-axis is dynamic instead of starting at Zero HOT 1
- Histogram Chart?
- Missing legend causes uncaught errors when updateing data.
- How to declare HTML for charts' labels? HOT 1
- How to get the same design as the website example? HOT 2
- multiple numbers are overwritten for valuesOverPoints set to 1 HOT 2
- Pie Inline Labels HOT 4
- Console errors reporting NaN HOT 1
- Use a linear gradient as line color
- Promise or event for render complete? HOT 1
- Feature Request: Total in tooltip for area chart regionFill
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.