ember-learn / ember-cli-addon-docs

Easy, beautiful docs for your OSS Ember addons
https://ember-learn.github.io/ember-cli-addon-docs
MIT License
176 stars 143 forks source link

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

Open GCheung55 opened 6 years ago

GCheung55 commented 6 years ago

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.

// 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)
samselikoff commented 6 years ago

We should upgrade ember-cli-tailwind and see if it helps. There's a few upgrade steps involved.