Arpit Dalal

Results 21 comments of Arpit Dalal

Also, in the editor if you go to `/app/routes/settings+/profile.photo.tsx` file, you'll see the TS error that I mentioned in the issue: ``` JSX element type 'Cropper' does not have any...

temp fix with patch-package: ``` diff --git a/node_modules/react-easy-crop/index.module.js b/node_modules/react-easy-crop/index.module.js index 11cf90c..f50b7dd 100644 --- a/node_modules/react-easy-crop/index.module.js +++ b/node_modules/react-easy-crop/index.module.js @@ -1,7 +1,30 @@ -import { __assign, __extends } from 'tslib'; import React from...

It's not just my use case, it doesn't work with Remix at all, here's a minimal application of remix and react-easy-crop: https://stackblitz.com/edit/remix-run-remix-mryppq?file=app%2Froutes%2F_index.tsx

> And when importing Cropper like this import Cropper from 'react-easy-crop' gives this error when using it ```JSX element type 'Cropper' does not have any construct or call signatures.ts(2604)``` This...

Oh sorry, I didn't communicate clearly. The part of this issue is fixed. The one that would give an error in the code editor is fixed, but not the terminal...

Just tried it, didn't fix the issue. This is the console error: ```sh SyntaxError: Named export '__assign' not found. The requested module 'tslib' is a CommonJS module, which may not...

Actually, this works ```json "exports": { ".": { "import": { "types": "./index.module.d.mts",

Surprisingly, that worked. I don't see `index.d.mts` in the [build output on npm](https://www.npmjs.com/package/react-easy-crop/v/5.0.7--canary.527.82deecf.0?activeTab=code) though. I am not sure how that works. I think it should be `index.module.d.mts` since that exists...

nvm, sorry, I tried the canary `5.0.7--canary.527.82deecf.0` with `ssr.noExternal` in the vite config. Without `ssr.noExternal` in the vite config, it fails on start. Failing with `[email protected]` too 😞 Sorry dude,...

I'm now seeing this error more than half of the time running e2e tests. It wasn't this bad before. It has increased in both local and CI environments.