You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a ReactJS project that uses lighweight-charts library.
I was able to successfully install an npm package, import the library and use it as a dependency:
import { createChart } from 'lightweight-charts';
Now i have a requirement to build a version of lightweight-charts library from source because a particular fork of this library has a feature that satisfies my use case.
I've followed these instructions to compile and build the package from source. The build produces the following files:
I've attempted to import the lightweight-charts.standalone.production.js as a dependency directly in the React code, which resulted in the following errors:
index.js:1 src\lib\dist_lightweight-charts.standalone.production.js
Line 7:1: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 7:268: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 7:555: Expected an assignment or function call and instead saw an expression no-unused-expressions
How can a custom-built lightweight-charts package be used as a dependency, ideally as an npm dependency ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a ReactJS project that uses lighweight-charts library.
I was able to successfully install an npm package, import the library and use it as a dependency:
import { createChart } from 'lightweight-charts';
Now i have a requirement to build a version of lightweight-charts library from source because a particular fork of this library has a feature that satisfies my use case.
I've followed these instructions to compile and build the package from source. The build produces the following files:
I've attempted to import the lightweight-charts.standalone.production.js as a dependency directly in the React code, which resulted in the following errors:
How can a custom-built lightweight-charts package be used as a dependency, ideally as an npm dependency ?
Beta Was this translation helpful? Give feedback.
All reactions