uploadcare / react-widget

Uploadcare React Widget
MIT License
85 stars 18 forks source link

Unable to use en-min bundle #342

Closed insectman closed 2 years ago

insectman commented 2 years ago

Describe the bug

Unable to use english-minified bundle

Expected behavior

webpack should compile the project without errors

Code / screenshots

... import { Widget } from '@uploadcare/react-widget/en-min'; ...

leads to the following errors: ERROR in ./node_modules/@uploadcare/react-widget/en-min/dialog-fabc3b17.js 1:128-184 Module not found: Error: Can't resolve 'uploadcare-widget/uploadcare.lang.en.min' in 'C:\project-path\node_modules\@uploadcare\react-widget\en-min' ERROR in ./node_modules/@uploadcare/react-widget/en-min/uploader-f2bf0eba.js 1:159-215 Module not found: Error: Can't resolve 'uploadcare-widget/uploadcare.lang.en.min' in 'C:\project-path\node_modules\@uploadcare\react-widget\en-min'

Environment

@uploadcare/react-widget: 2.1.5 webpack: 5.74.0 Windows 10 Pro

nd0ut commented 2 years ago

Hey @insectman,

I guess the problem is the missing extension in the import path on our side. Please try @uploadcare/react-widget@2.1.6-alpha.0 and tell me if it work for you.

insectman commented 2 years ago

Hey @insectman,

I guess the problem is the missing extension in the import path on our side. Please try @uploadcare/react-widget@2.1.6-alpha.0 and tell me if it work for you.

It appears to be working, thanks.