Error "inject() can only be used inside setup() or functional components" after ugrading to beta 40 #977
-
Hello, I'm having an issue upgrading to beta 40 (I'm actually at beta 41 to solve the nprogress seen in beta 40). 1/ I have follow the setup to upgrade my config file as described in the changelog and I updated my custom theme as described in
3/ The command 4/ But the rendering in the browser fails: I think it has to do with my custom Layout not using setup properly. I try this but it didn't solve it. What am I missing? Thank you very much for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
First of all, you'd better clean the lockfile and node_modules then re-install again. I saw you have two different version in your lockfile: https://github.com/JeremieLitzler/journal/blob/7935d5a7e5f29e6696227520db75e2a2e921c669/yarn.lock#L1268-L1311 Then, if you still got stuck, you should provide a reproduce repo. A standalone commit is not helpful enough. |
Beta Was this translation helpful? Give feedback.
First of all, you'd better clean the lockfile and node_modules then re-install again. I saw you have two different version in your lockfile: https://github.com/JeremieLitzler/journal/blob/7935d5a7e5f29e6696227520db75e2a2e921c669/yarn.lock#L1268-L1311
Then, if you still got stuck, you should provide a reproduce repo. A standalone commit is not helpful enough.