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
To address the original question that led to this issue: which version of Node are you using for this? Because this library declares two points of use:
I.e. the dist version of the library is the legacy commonjs code, which doesn't use import/export.
Also, if I run this as plain JS, things seem to work perfectly fine, so this might be related to how you're trying to load TS definitions on top of a plain JS library - unfortunately I have zero TS experience so someone else may have to help you out. If you can reduce this to a true minimal reproducible form your best bet is probably Stackoverflow here.
@richardk123 that's a closed issue, want to summarize it? (there's a lot of discussion in it, so if there's some useful information in there that pertains to this library, please repost that information here, instead of just linking out without anything to tell me what you want me to do with that link =)
Description
create-react-app
using thetypescript
templatebezier-js
via npmdeclare module "bezier-js"
toreact-app-env.d.ts
index.tsx
:Steps to reproduce
The following steps will assist you in cloning the reproducible example project.
git clone https://github.com/baughmann/bezier-js-issue
cd bezier-js-issue
npm i && npm start
The text was updated successfully, but these errors were encountered: