Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vue-windicss-preprocess] handler is not a function #44

Closed
regenrek opened this issue Feb 16, 2021 · 1 comment
Closed

[vue-windicss-preprocess] handler is not a function #44

regenrek opened this issue Feb 16, 2021 · 1 comment

Comments

@regenrek
Copy link

regenrek commented Feb 16, 2021

Hi

thanks for this great project!

I stumbled upon some issue on my project. I basically did the setup according to the docs.

https://github.com/regenrek/nuxt-storyblok-starter/blob/windicss/nuxt.config.js#L123
https://github.com/regenrek/nuxt-storyblok-starter/blob/windicss/package.json#L55
https://github.com/regenrek/nuxt-storyblok-starter/blob/windicss/tailwind.config.js

I installed the vue-windicss-precocess manually due npx raised an error according to #42

After starting the dev server I'm stuck at this error

 ERROR  in ./.nuxt/components/nuxt-error.vue                              friendly-errors 22:11:36

Module build failed (from ./node_modules/vue-windicss-preprocess/index.js):
TypeError: handler is not a function
    at Processor.loadPlugin (/Users/jondoe/projects/nuxt-storyblok-starter/node_modules/windicss/lib/index.js:15719:9)
    at /Users/jondoe/projects/nuxt-storyblok-starter/node_modules/windicss/lib/index.js:15477:166
    at Array.map (<anonymous>)
    at Processor.resolveConfig (/Users/jondoe/projects/nuxt-storyblok-starter/node_modules/windicss/lib/index.js:15477:77)
    at new Processor (/Users/jondoe/projects/nuxt-storyblok-starter/node_modules/windicss/lib/index.js:15386:29)
    at Object.index (/Users/jondoe/projects/nuxt-storyblok-starter/node_modules/vue-windicss-preprocess/index.js:308:21)
                                                                          friendly-errors 22:11:36
 @ ./.nuxt/index.js 19:0-52 518:0-32
 @ ./.nuxt/client.js
 @ multi ./node_modules/@nuxt/components/lib/installComponents.js eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js

Thank you in advance
Regards !

@regenrek
Copy link
Author

Ok it seems that my aspect-ratio plugin isn't compatible with windicss need to investigate.

https://github.com/regenrek/nuxt-storyblok-starter/blob/windicss/tailwind.config.js#L82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant