You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified my next.config.js to this and it seemed to work:
const { withExpo } = require('@expo/next-adapter')
const withTM = require('next-transpile-modules')([
'solito',
'moti',
'nativewind',
'app',
])
const withFonts = require('next-fonts')
/** @type {import('next').NextConfig} */
const nextConfig = {
// reanimated (and thus, Moti) doesn't work with strict mode currently...
// nandorojo/moti#224
// necolas/react-native-web#2330
// nandorojo/moti#224
// once that gets fixed, set this back to true
reactStrictMode: false,
experimental: {
forceSwcTransforms: true,
swcPlugins: [[require.resolve('./plugins/swc_plugin_reanimated.wasm')]],
},
}
withImage & withPlugins no longer work.
I modified my next.config.js to this and it seemed to work:
const { withExpo } = require('@expo/next-adapter')
const withTM = require('next-transpile-modules')([
'solito',
'moti',
'nativewind',
'app',
])
const withFonts = require('next-fonts')
/** @type {import('next').NextConfig} */
const nextConfig = {
// reanimated (and thus, Moti) doesn't work with strict mode currently...
// nandorojo/moti#224
// necolas/react-native-web#2330
// nandorojo/moti#224
// once that gets fixed, set this back to true
reactStrictMode: false,
experimental: {
forceSwcTransforms: true,
swcPlugins: [[require.resolve('./plugins/swc_plugin_reanimated.wasm')]],
},
}
const plugins = [withTM, withFonts, withExpo]
module.exports = () => {
return plugins.reduce((acc, plugin) => plugin(acc), {
...nextConfig,
})
}
console.log(module.exports())
The text was updated successfully, but these errors were encountered: