$exports is not defined
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- chart.js, javascript
- 領域
- frontend
調査の方向性
提供されたパッケージバージョンで npm run build を実行して問題を再現し、その後、83 行目付近の chartjs-plugin-deferred.esm.js と cc-chart.js の import を調査します。バンドルされた build で $exports ReferenceError が発生せずに ChartDeferred を import して登録できれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
I use "npm run build" to get the advantage of the bundle size. In my JS file I imported the ChartDeferred as follows:
import {
Chart,
Tooltip,
Colors,
BarController,
CategoryScale,
LinearScale,
BarElement,
Legend,
BubbleController,
PointElement,
} from 'chart.js';
import ChartDeferred from 'chartjs-plugin-deferred';
Chart.register(
Tooltip,
Colors,
BarController,
BarElement,
CategoryScale,
LinearScale,
Legend,
BubbleController,
PointElement,
ChartDeferred,
);
Without the ChartDeferred, the charts are working perfectly, but with ChartDeferred imported, this error appears and I can't get rid of this:
Uncaught ReferenceError: $50e8ddfc489f09fc$exports is not defined
so chartjs-plugin-deferred.esm.js:83
beforeInit chartjs-plugin-deferred.esm.js:98
beforeInit chartjs-plugin-deferred.esm.js:144
$ helpers.core.ts:109
_notify core.plugins.js:60
notify core.plugins.js:42
notifyPlugins core.controller.js:1148
_initialize core.controller.js:251
on core.controller.js:204
<anonymous> cc-chart.js:42
chart.js = 4.3.0
chartjs-plugin-deferred = 2.0.0
my package.json:
{
"name": "example",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"dev": "parcel src/index.html --no-content-hash",
"build": "parcel build src/index.html --no-content-hash"
},
"devDependencies": {
"parcel": "^2.6.2"
},
"dependencies": {
"@cubejs-client/core": "^0.31.0",
"chart.js": "^4.0.0",
"chartjs-plugin-deferred": "^2.0.0"
}
}
- 主要言語
- JavaScript
- スター
- 113
- フォーク
- 20
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
chartjs/chartjs-plugin-deferred のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
chartjs/chartjs-plugin-deferred#30 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
chartjs/chartjs-plugin-deferred#20 · コメント 1 件 ·
chartjs/chartjs-plugin-deferred の issue をすべて見る
似ている issue
-
[BUG] Multi-day events show "Ended" while still in progress対応中かも @tarunagnihotri534 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
data-umbrella/du-event-board#231 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NaturalIntelligence/fast-xml-parser#888 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
USACE/chart-docs#766 ·
-
bug callouts regression revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
quarto-dev/quarto-cli#15014 ·
メンテナーはふだん 1 日以内に返信