ember-cli-addon-docs icon indicating copy to clipboard operation
ember-cli-addon-docs copied to clipboard

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

Open GCheung55 opened this issue 7 years ago • 1 comments

[email protected]

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)

GCheung55 avatar Jun 07 '18 22:06 GCheung55

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

samselikoff avatar Jun 27 '18 17:06 samselikoff