callstack / callstack/react-native-paper

Deprecated Package Warning Adding to New Project

未关闭
#4,289 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

### Current behaviour
Added to existing RN project via the command
`npm install react-native-paper`

And in my terminal, I get these messages about packages originally used that were in proposal stage but has now been merged:

```
npm WARN deprecated @babel/plugin-proposal-optional-catch-binding@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
npm WARN deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
```

### Expected behaviour
All packages should resolve without the warning deprecation. Getting these warning when adding to a new project would require to update the packages to the non-deprecated version.

### How to reproduce?
Add to a newly initialized project as per [documentation](https://callstack.github.io/react-native-paper/docs/guides/getting-started)

`npm install react-native-paper`

### Preview
Screenshot 2024-01-20 at 9 36 17 PM

### What have you tried so far?
Since this project has just been initialized, I am planning to manually install the packages as per terminal warning.

### Your Environment
react-native@0.73.2
MacOS Ventura 13.6.3
node v. 18.17.1

贡献指南

打开贡献指南

调研方向

从文档中的 getting-started 设置开始,在一个新的 React Native 0.73.2 项目中运行 `npm install react-native-paper`,以复现这些警告。追踪是哪个依赖引入了已弃用的 Babel 软件包,然后验证全新安装能够在没有这些弃用警告的情况下完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native, typescript
领域
mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。