I'm trying to start up a new project in vanilla typescript with uppy but I keep getting an import error:
Module '"@uppy/core"' has no exported member 'debugLogger'. Did you mean to use 'import debugLogger from "@uppy/core"' instead?
I'm following the docs and example sandboxes.
{
"name": "vanilla-typescript",
"version": "1.0.0",
"description": "JavaScript and TypeScript example starter project",
"main": "index.html",
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
},
"dependencies": {
"parcel-bundler": "^1.6.1",
"@uppy/core": "^3.8.0",
"@uppy/drag-drop": "^3.0.3",
"@uppy/status-bar": "^3.2.5",
"@uppy/xhr-upload": "^3.6.0"
},
"devDependencies": {
"typescript": "4.4.4"
},
"resolutions": {
"@babel/preset-env": "7.13.8"
},
"keywords": ["typescript", "javascript"]
}
import "./styles.css";
import Uppy, { debugLogger } from "@uppy/core";
console.log({ debugLogger });
Here's a test sandbox that errors and won't start up. What am I doing wrong here?