ReferenceError: moment is not defined
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, nodejs
- 領域
- backend
調査の方向性
lib/schemas/config.js とレポートで言及されている Dockerfile の設定から始め、一覧にあるカスタムリソースと allowCodeExecution オプションを使ってコマンドライン呼び出しを再現します。moment が formatter で利用できない理由を特定し、ReferenceError なしでコマンドを完了できる設定を検証します。
索引モデルが issue の本文から書いたものです。
説明
Hello,
I try to use node-export-server from docker with a formatter using moment.js :
datethe = moment().year(datetheYW[0]).isoWeek(datetheYW[1]).startOf('isoWeek').format('YYYY-MM-DD') + ' w' + datetheYW[1] + '';
but I got this error : ReferenceError: moment is not defined
/bin/docker run -u 0:0 --rm --tmpfs=/run highcharts_es cat lib/schemas/config.js
contains :
custom: [
'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.45/moment-timezone-with-data.min.js'
]
On the dockerfile :
ENV HIGHCHARTS_MOMENT="YES" (or true or 1)
I am not sure it is still valid because HIGHCHARTS_MOMENT does not appear on the documentation
+
npm install -S moment moment-timezone luxon (...)
I am not sure it is needed given lib/schemas/config.js
Could you help me to understand how to make it work please ?
The command line:
/usr/local/bin/highcharts-export-server --resources '[]' --allowFileResources true --allowCodeExecution true --infile "$from" --outfile "$to" $width $height $scale --logLevel 2 --nologo true 2>&1
- 主要言語
- JavaScript
- スター
- 368
- フォーク
- 265
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
highcharts/node-export-server のほかの issue
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-server対応中かも @daniatic が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
highcharts/node-export-server#686 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
highcharts/node-export-server#680 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
highcharts/node-export-server#679 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
highcharts/node-export-server#678 ·
-
Not working on s390xオープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
highcharts/node-export-server#676 ·
highcharts/node-export-server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NaturalIntelligence/fast-xml-parser#888 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug callouts regression revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
quarto-dev/quarto-cli#15014 ·
メンテナーはふだん 1 日以内に返信
-
check:passed feeds:remove
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
iptv-org/database#37176 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 9 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hawk-digital-environments/HAWKI#443 ·
メンテナーはふだん 1 日以内に返信
-
documentation v2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
modelcontextprotocol/python-sdk#3662 ·
メンテナーはふだん 1 日以内に返信