Closed jschof1 closed 2 years ago
Module not found: Package path ./compat/jsx-runtime.js is not exported from package /vercel/path0/node_modules/preact (see exports field in /vercel/path0/node_modules/preact/package.json)
It seems that for some reason Preact is not found. Could you try updating your preact version and next.config.js
to match the current master? Otherwise, if you don't mind not using Preact, you can remove these lines and it should work.
Thank for your help, I finally managed to get it deployed!
package.json
by replacing the one I was using with the one in the latest version of this repo.next.config.js
with the latest repo.next.config.js
changing this webpack: (config, { dev, isServer }) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
To this
webpack: (config, { dev, isServer }) => {
(config.resolve.alias = {
...config.resolve.alias,
// fixes next-mdx-remote: Package path ./jsx-runtime.js is not exported from package react
// https://github.com/hashicorp/next-mdx-remote/issues/237
'react/jsx-runtime.js': require.resolve('react/jsx-runtime'),
}),
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
prettier
extension so I ran this in my root directorynpm run lint --fix
Ta da! What a relief.
Unable to deploy app on Vercal