Nuxt.js: Cannot read property 'middleware' of undefined

Created on 29 Apr 2018  ·  9Comments  ·  Source: nuxt/nuxt.js

[HELP], i've had this bug after my last upgrade to node_modules directory, it seems that is related with nuxt-server, i even delete all my middlewares and still not fixed .
screenshot-2018-4-29 http 127 0 0 1

This question is available on Nuxt.js community (#c6998)

Most helpful comment

Check if you have any js errors in your layouts or store (if you are unsure just put everything in a try catch). I got a similar error when I had an error in my default layout.

All 9 comments

Have you used middleware: [ /* ... */ ] in your nuxt.config.js or in any component or page file? :thinking:

Check if you have any js errors in your layouts or store (if you are unsure just put everything in a try catch). I got a similar error when I had an error in my default layout.

how do you slove this problem?

had same error, @pimlie 's answer worked for me, thanks

nuxt + vux
nuxt 1.0.0-rc11 升级到 1.4.1 以后报这个错,解决方法
去掉
directives: {
TransferDom
}
后不报错

@pimlie 'answer works to me.

Same problem. Until yet unsolved.
This happens as soon as I load custom components with the components property

@MartinMuzatko create a reproduction in github repo or codesandbox

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  ·  3Comments

danieloprado picture danieloprado  ·  3Comments

vadimsg picture vadimsg  ·  3Comments

maicong picture maicong  ·  3Comments

vadimsg picture vadimsg  ·  3Comments