'PlotlyModule' does not appear to be an NgModule class.
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 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 分鐘
- 30 天內合併 PR
- 5
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 個 reaction ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 25/100
plotly/angular-plotly.js#278 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 plotly/angular-plotly.js 的全部 Issue
相似的 Issue
-
test: claim-conflict drop leaves both facts active and is never re-proposed (untested review cell)未關閉
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
[Feature]: Usage page should show API-equivalent cost and say when a connected plan shows info only未關閉enhancement from-x
難度 2/5 1-3 小時 新手友好度 66/100
nightly-labs/openbot#4867 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
egonSchiele/agency-lang#1377 ·
維護者通常 1 天內回覆
-
normalizePath removes the Windows device namespace prefix可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
caprover/caprover-frontend#273 ·
維護者通常 1 天內回覆