mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
- The blocker was `@uppy/angular` — its build was failing because it
could not resolve modules and types for its dependencies
(`@uppy/dashboard`, `@uppy/utils`, `@uppy/provider-views`,
`@uppy/core`).
```typescript
------------------------------------------------------------------------------
Building entry point '@uppy/angular'
------------------------------------------------------------------------------
✖ Compiling with Angular sources in Ivy partial compilation mode.
../dashboard/lib/Dashboard.d.ts:1:106 - error TS2307: Cannot find module '@uppy/core' or its corresponding type declarations.
1 import type { Body, DefinePluginOpts, Meta, State, UIPluginOptions, UnknownPlugin, Uppy, UppyFile } from '@uppy/core';
~~~~~~~~~~~~
../dashboard/lib/Dashboard.d.ts:2:26 - error TS2307: Cannot find module '@uppy/core' or its corresponding type declarations.
2 import { UIPlugin } from '@uppy/core';
~~~~~~~~~~~~
../dashboard/lib/Dashboard.d.ts:3:35 - error TS2307: Cannot find module '@uppy/provider-views' or its corresponding type declarations.
```
Angular (TypeScript with moduleResolution: node) required a "main" or
"types" field in each dependency’s package.json, and ignored their
"exports" map.
82 lines
2 KiB
JSON
82 lines
2 KiB
JSON
{
|
|
"name": "@uppy/react",
|
|
"description": "React component wrappers around Uppy's official UI plugins.",
|
|
"version": "5.0.2",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --build tsconfig.build.json",
|
|
"build:css": "mkdir -p dist && cp ../components/dist/styles.css dist/styles.css",
|
|
"typecheck": "tsc --build",
|
|
"test": "vitest run --environment=jsdom --silent='passed-only'"
|
|
},
|
|
"keywords": [
|
|
"file uploader",
|
|
"uppy",
|
|
"uppy-plugin",
|
|
"react",
|
|
"react-components"
|
|
],
|
|
"homepage": "https://uppy.io",
|
|
"bugs": {
|
|
"url": "https://github.com/transloadit/uppy/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/transloadit/uppy.git"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"dist",
|
|
"CHANGELOG.md"
|
|
],
|
|
"dependencies": {
|
|
"@uppy/components": "workspace:^",
|
|
"@uppy/utils": "workspace:^",
|
|
"preact": "^10.5.13",
|
|
"use-sync-external-store": "^1.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.4.2",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@types/react": "^18.0.8",
|
|
"@types/use-sync-external-store": "^0.0.6",
|
|
"@uppy/core": "workspace:^",
|
|
"jsdom": "^26.1.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./css/style.css": "./dist/styles.css",
|
|
"./dashboard": "./lib/Dashboard.js",
|
|
"./dashboard-modal": "./lib/DashboardModal.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"peerDependencies": {
|
|
"@uppy/core": "workspace:^",
|
|
"@uppy/dashboard": "workspace:^",
|
|
"@uppy/screen-capture": "workspace:^",
|
|
"@uppy/webcam": "workspace:^",
|
|
"react": "^18.0.0 || ^19.0.0",
|
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@uppy/dashboard": {
|
|
"optional": true
|
|
},
|
|
"@uppy/screen-capture": {
|
|
"optional": true
|
|
},
|
|
"@uppy/webcam": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|