gagan3012 / streamlit-tags

Custom Tag component for streamlit
https://streamlit-tags.readthedocs.io/en/latest/
MIT License
303 stars 19 forks source link

Need help setting up development environment #47

Closed dwvisser closed 1 year ago

dwvisser commented 1 year ago

When I try to npm install in streamlit-tags/streamlit_tags/frontend, then either npm run start or npm run build, I get this error that I can't seem to get past:

TypeScript error in /home/ilab-user/streamlit-tags/streamlit_tags/frontend/node_modules/@types/babel__traverse/index.d.ts(321,9):
Type expected.  TS1110

    319 |     // too complex for TS. So we type it as a general visitor only if the key contains `|`
    320 |     // this is good enough for non-visitor traverse options e.g. `noScope`
  > 321 |     [k: `${string}|${string}`]: VisitNode<S, Node>;
        |         ^
    322 | };
    323 | 
    324 | export type VisitNode<S, P extends Node> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;

Some context:

➜  nvm current
v16.20.2

I get the same errors with NodeJS 18, except to avoid SSH security errors, I have to prefix the launch command with NODE_OPTIONS=--openssl-legacy-provider.

Is there some undocumented magic sauce to get this working? A particular NodeJS version? A configuration option at launch?

dwvisser commented 1 year ago

I have made progress by making library version updates that allow the project to build. See https://github.com/dwvisser/streamlit-tags/pull/2 for reference. Once I am happy with it, I may create a proper pull request here.