abe33 / abe33/atom-tablr

Uncaught ReferenceError: __CUSTOM_HTML_ELEMENTS_CLASSES__ is not defined

オープン
#110 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
CoffeeScript
スター
163
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

説明

[Enter steps to reproduce:]

1. Right click on .csv file in finder and select open with atom
2. Didn't change any options and clicked Open Table Editor
3. Error appeared

**Atom**: 1.53.0 x64
**Electron**: 6.1.12
**OS**: macOS 11.1
**Thrown From**: [tablr](https://github.com/abe33/atom-tablr) package 1.8.3

### Stack Trace

Uncaught ReferenceError: __CUSTOM_HTML_ELEMENTS_CLASSES__ is not defined

```
At /Users/peterdye/.atom/packages/tablr/node_modules/atom-utils/lib/register-or-update-element.js:55

ReferenceError: __CUSTOM_HTML_ELEMENTS_CLASSES__ is not defined
at module.exports (/packages/tablr/node_modules/atom-utils/lib/register-or-update-element.js:55:5)
at element (/packages/tablr/lib/decorators/element.js:6:10)
at Function.initClass (/packages/tablr/lib/csv-progress-element.js:11:12)
at /packages/tablr/lib/csv-progress-element.js:59:37)
at /packages/tablr/lib/csv-progress-element.js:61:3)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147498)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:151046)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146814)
at HTMLElement.displayProgress (/packages/tablr/lib/csv-editor-element.js:198:28)
at HTMLElement.ensureProgress (/packages/tablr/lib/csv-editor-element.js:193:39)
at /packages/tablr/lib/csv-editor-element.js:61:12
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1190051)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1191492)
at CSVEditor.openTableEditor (/packages/tablr/lib/csv-editor.js:270:18)
at /packages/tablr/lib/csv-editor-element.js:154:20)
at HTMLButtonElement.listener (/packages/tablr/node_modules/atom-utils/lib/mixins/events-delegation.js:108:41)
```

### Commands

```
```

### Non-Core Packages

```
arduino-upload 1.8.0
atom-clock 0.1.18
atom-ide-debugger-python 0.7.3
atom-ide-outline 1.16.0
atom-ide-ui 0.13.0
file-icons 2.1.46
ide-python 1.7.2
ide-rust 0.22.0-beta.3
kite 0.197.0
language-arduino 0.4.3
language-cython 0.3.0
language-matlab 0.2.1
minimap 4.38.2
pdf-view 0.72.0
platformio-ide-terminal 2.10.1
python-debugger 0.2.0
python-tools 0.6.9
tablr 1.8.3
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

/packages/tablr/node_modules/atom-utils/lib/register-or-update-element.js の 55 行目で、未定義の __CUSTOM_HTML_ELEMENTS_CLASSES__ が参照されていることがエラーの原因です。まず、このファイルと tablr パッケージでの使用箇所、特に lib/decorators/element.js と lib/csv-progress-element.js を調べてください。変数が宣言またはインポートされているか確認してください。修正では、使用前に変数が定義されていることを保証する必要がある可能性があります。Atom で CSV ファイルを開き、'Open Table Editor' をクリックしてエラーを再現し、テストしてください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
cli, desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。