'PlotlyModule' does not appear to be an NgModule class.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- angular, typescript
- 領域
- frontend
調査の方向性
まず、issue に記載されている Angular 17 および angular-plotly.js 4.0.4 のバージョンで NG6002 エラーを再現します。app.module.ts と node_modules/angular-plotly.js/lib/plotly.module.d.ts を調査し、その後、Ivy 互換性エラーなしで PlotlyModule をインポートできることを確認します。
索引モデルが issue の本文から書いたものです。
説明
We are experiencing an issue when using angular-plotly.js and Angular17 saying that "'PlotlyModule' does not appear to be an NgModule class."
Error
error NG6002: 'PlotlyModule' does not appear to be an NgModule class.
176 PlotlyModule,
~~~~~~~~~~~~
node_modules/angular-plotly.js/lib/plotly.module.d.ts:1:22
1 export declare class PlotlyModule {
~~~~~~~~~~~~
This likely means that the library (angular-plotly.js) which declares PlotlyModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
app.module.ts
import * as PlotlyJS from 'plotly.js-dist-min';
import { PlotlyModule } from 'angular-plotly.js';
PlotlyModule.plotlyjs = PlotlyJS;
@NgModule({
declarations: [
...,
],
imports: [
...,
PlotlyModule,
...,
]
});
Package Details
"@angular/animations": "^17.0.9",
"@angular/cdk": "^16.2.13",
"@angular/common": "^17.0.9",
"@angular/compiler": "^17.0.9",
"@angular/core": "^17.0.9",
"@angular/forms": "^17.0.9",
"@angular/material": "^16.2.13",
"@angular/platform-browser": "^17.0.9",
@angular/platform-browser-dynamic": "^17.0.9",
"@angular/router": "^17.0.9",
"angular-plotly.js": "^4.0.4",
"moment": "^2.29.4",
"plotly.js-dist-min": "^2.21.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
Is there something that can be done that will enable this to work?
- 主要言語
- TypeScript
- スター
- 242
- フォーク
- 81
- 平均マージ
- 23時間 52分
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/angular-plotly.js のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
plotly/angular-plotly.js#373 ·
メンテナーはふだん 1 日以内に返信
-
Feature request: please add migration guide対応中かも @andrefarzat が 21 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
plotly/angular-plotly.js#285 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
event handlers are not typed対応中かも @andrefarzat が 21 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
plotly/angular-plotly.js#283 ·
メンテナーはふだん 1 日以内に返信
-
Angular 20 standalone application対応中かも @andrefarzat が 21 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
plotly/angular-plotly.js#281 · コメント 8 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
plotly/angular-plotly.js#278 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
plotly/angular-plotly.js の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DSpace/dspace-angular#6511 ·
メンテナーはふだん 1 日以内に返信
-
area: frontend area:byok bug severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Phone app shows Unknown for a remote machine whose key changed対応中かも @janicduplessis が今日担当しました。 オープンarea: mobile priority: P3 type: bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
appandflow/stim#5006 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Area - Local to Cloud Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
microsoft/vscode-mssql#23209 ·
メンテナーはふだん 1 日以内に返信