ember-cli-addon-docs
ember-cli-addon-docs copied to clipboard
/tailwind route throws uncaught error: Could not find module `dummy/tailwind/config/colors`
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)
We should upgrade ember-cli-tailwind and see if it helps. There's a few upgrade steps involved.