Skip to content

1.7.0 breaking core.css import #63

@mmacrea

Description

@mmacrea

Describe the bug

When installing the 1.7.0 version released yesterday and importing the css like:

import "@uploadcare/react-uploader/core.css";

The module will break.

This is because, the exports in 1.7.0 are :

"exports": {
".": {
"import": "./dist/react-uploader.js",
"require": "./dist/react-uploader.cjs"
},
"./next": {
"import": "./dist/nextjs.js",
"require": "./dist/nextjs.cjs",
"types": "./dist/nextjs.d.ts"
},
"./core.css": "./dist/style.css"
},

but there is no more style.css as it was changed for some reason to react-uploader.css.

Either revert the react-uploader.css to style.css or export the correct file.

Expected behavior

Code / screenshots

Environment

  • Library version:
  • Language/framework version:
  • OS version:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions