react-component / react-component/notification

Notification上不存在属性“newInstance”

Open
#382 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
384
Forks
118
Avg merge
1h 18m
Merged PRs (30d)
2

Description

5.6.4版本,参考README:
import Notification from 'rc-notification';

Notification.newInstance({}, notification => {
notification.notice({
content: 'content'
});
});

但是会有Notification上不存在属性“newInstance”的错误

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the 5.6.4 README example and reproduce the reported error involving Notification.newInstance. Compare the documented API with the package's exported API and TypeScript declarations. Done when the example works as documented or the README accurately describes the supported usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.