-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Next.js 9 #44
Comments
I did not experience any trouble with Next.js 9 on my setups. 🤔 It is not the first time I see the misconception to use this plugin as a IE11 polyfiller (it's not the case!). But let's try if we can fix it. How do you polyfill your app? core-js? babel-runtime? |
@martpie I'm using core-js to pollyfill my app polyfills.js import 'core-js/es6/object'
import 'core-js/es6/array'
import 'core-js/es7/array' And this webpack config in my next.config.js: webpack(conf) {
const originalEntry = conf.entry
conf.entry = async () => {
const entries = await originalEntry()
if (entries['main.js']) {
entries['main.js'].unshift('./core/polyfills.js')
}
return entries
}
return conf
}, My babel config is from {
"env": {
"development": {
"presets": ["next/babel"]
},
"production": {
"presets": ["next/babel"]
}
}
}
I'm sure that is not the best usage of this library. After hours fighting with IE11 problems caused only by the |
I created a repo that is reproducing the issue: https://github.com/aralroca/next-9-issue To reproduce it
FAILS... Ways to "fix it"
|
Thank you, the repro will help a lot. I am currently overwhelmed, so I cannot promise when I'll have a look, but I'll do my best! |
Ok 🙂Thank you so much. I confirm that the problem is still happening with the latest next v9.0.1. |
Can you tell me exactly what ES feature is not working in IE11 with |
Okey, I did some tests, and tried to debug it, it does not seem it's because of
I'll follow those issues to see if anything happens. Also, it is worth noticing that Maybe you did not correctly setup core-js in your app? |
TL,DR: Next.js targets IE11, I'll close this, if you have some disagreements or new information, I'll gladly re-open it. |
Next-i18next is now compatible with Next.js 9 https://github.com/isaachinman/next-i18next/releases/tag/v0.46.0 |
And here you are for the IE11 compatibility i18next/next-i18next#290 (comment) |
I'm using
next-transpile-modules
to transpile just one library:This was working fine in Next.js 8. However, after migrate to Next.js 9 now I have some errors related with the imports of the
next-i18next
areundefined
and crash all the app.If I replace
transpileModules: ['next-i18next']
totranspileModules: []
it works fine. However, I want to transpile this library because it have some arrow functions and they are not working fine in IE11...Relates with i18next/next-i18next#382 (comment)
The text was updated successfully, but these errors were encountered: