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

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

Open
#189 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
172
Forks
142
PR merge metrics
No merged PRs in 30d

Description

**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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.