Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Problem in using hiplot with Angular #128

Open
fit-alessandro-berti opened this issue Aug 28, 2020 · 1 comment
Open

Problem in using hiplot with Angular #128

fit-alessandro-berti opened this issue Aug 28, 2020 · 1 comment
Labels
bug Something isn't working javascript

Comments

@fit-alessandro-berti
Copy link

Hi,

I tried to use hiplot with an Angular project. I did: npm install hiplot

But when I try to import hiplot through:

import * as hipl from 'hiplot';

I have problems, like the following:

../node_modules/hiplot/dist/distribution/plugin.d.ts:30:23 - error TS2503: Cannot find namespace 'JSX'.

30 render(): any[] | JSX.Element;
~~~
../node_modules/hiplot/dist/parallel/parallel.d.ts:65:15 - error TS2503: Cannot find namespace 'JSX'.

65 render(): JSX.Element;
~~~
../node_modules/hiplot/dist/plotxy.d.ts:3:15 - error TS2307: Cannot find module 'underscore'.

3 import _ from "underscore";
~~~~~~~~~~~~
../node_modules/hiplot/dist/plotxy.d.ts:53:23 - error TS2503: Cannot find namespace 'JSX'.

53 render(): any[] | JSX.Element;

How could I solve? Thanks and have a nice week

@danthe3rd
Copy link
Contributor

Hello,

The state of javascript dev environment is a bit messy, with various typing systems, frameworks (angular, react, ...), bundlers (webpack, babel and others), import systems (umd, ES modules...). Getting hiplot to run on different setups is quite challenging - for now I've been focusing on react only.
If you could upload a minimal project that reproduces your issue I can have a look, but it is not high priority at the moment.

Thank you for reporting

@danthe3rd danthe3rd added the bug Something isn't working label Sep 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working javascript
Projects
None yet
Development

No branches or pull requests

2 participants