Skip to content

Issue [email protected] - Expected usable value but received an empty preset #683

@volosincu

Description

@volosincu

I had this error. Could not find the cause but I think it is caused by the module type.
In the project I'm using react-markdown with rehype plugins and there unified doesn't have this issues.

index.js:1110 Uncaught (in promise) Error: Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither
    at addPreset (index.js:1110:1)
    at apply.use (index.js:1076:1)
    at ./node_modules/@uiw/react-md-editor/esm/index.js (index.js:10:1)
    at __webpack_require__ (bootstrap:19:1)
    at sharing:50:1
    at __webpack_require__.m.<computed> (main.js:494:34)
    at __webpack_require__ (bootstrap:19:1)

ts-config

{
  "compilerOptions": {
    "jsx": "react",
    "module": "ESNext",
    "noImplicitAny": true,
    "outDir": "./build/",
    "preserveConstEnums": true,
    "removeComments": true,
    "sourceMap": true,
    "target": "es5",
    "esModuleInterop": true,
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "allowSyntheticDefaultImports": true,
    "typeRoots": ["node_modules/@types", "./src/@types"]
  },
  "include": ["src/**/*", ".eslintrc.js"],
  "exclude": ["node_modules"]
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions