ember-learn / ember-learn/ember-cli-addon-docs

/tailwind route throws uncaught error: Could not find module `dummy/tailwind/config/colors`

オープン
#189 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
JavaScript
スター
172
フォーク
142
PR マージ指標
30日以内にマージされた PR はありません

説明

**ember-cli-addon-docs@0.4.2**

I've enabled the build to include the style guide by setting `shouldIncludeStyleguide` to `true` in my addon's `ember-cli-build.js`.

```javascript
// ember-cli-build.js
const EmberAddonDocs = require('ember-cli-addon-docs');
EmberAddonDocs.options['ember-cli-tailwind'].shouldIncludeStyleguide = true;
```
Once the dummy app is deployed, visiting `/tailwind` results in a JS error:

```
Uncaught Error: Could not find module `dummy/tailwind/config/colors` imported from `dummy/controllers/application-tailwind`
at missingModule (loader.js:247)
at findModule (loader.js:258)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at requireModule (loader.js:24)
at Class._extractDefaultExport (index.js:411)
at Class.resolveOther (index.js:114)
at Class.superWrapper [as resolveOther] (ember-utils.js:428)
at Class.resolveController (resolver.js:223)
at Class.resolve (resolver.js:130)
```

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ember-cli-build.js で shouldIncludeStyleguide を有効にした状態で、デプロイ済みの dummy アプリを再現します。次に、/tailwind route と dummy/controllers/application-tailwind からの import を調べます。dummy/tailwind/config/colors が利用できない理由を特定します。/tailwind にアクセスしても missing-module error が発生しなくなれば完了です。

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

評価

技術スタック
javascript, tailwindcss
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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