Open fvpDev opened 4 years ago
I couldn't get VM to work with Next.js =/ I was able to use hooks to get a similar experience. Here's an example: https://github.com/ManuelDeLeon/react-props-example
Thanks man, I'll check it out. The quick response is much appreciated! I'm still kinda learning Next.js as well.
How do I make viewmodel-react work together with Next.js? I worked with ViewModel on Meteor a few years back but now wish to try something new.
I was able to adjust my package.json according to https://nextjs.org/docs/advanced-features/customizing-babel-config to:
however now I am getting an error that
React
is already declared:The
next/babel
presets already include: preset-env (which I understand ises2015
) preset-react (which I understand isreact
)