Not possible in combination with nextjs
nealoke opened this issue · 1 comments
nealoke commented
I've spent 2 days figuring out why it doesn't work even though the alias is added in my .babelrc
as well as in my next.config.js
files.
I initially thought it was another issue which you can view on stackoverflow where you can see my files that I used.
The error you receive is that it cannot find warnOnce
(even though the aliases are provided and working for other parts of the application)
nonotest commented
Hey,
works by adding
webpack: config => {
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native-maps$': 'react-native-web-maps'
}
return config
}
to your config